Fixed hostname in statistics to properly be in packed binary format.

This commit is contained in:
Thulinma 2014-10-22 16:50:55 +02:00
parent 7e8aaf8ee0
commit a6a6e296bc
3 changed files with 39 additions and 2 deletions

View file

@ -72,6 +72,7 @@ namespace Socket {
void setBlocking(bool blocking); ///< Set this socket to be blocking (true) or nonblocking (false).
bool isBlocking(); ///< Check if this socket is blocking (true) or nonblocking (false).
std::string getHost(); ///< Gets hostname for connection, if available.
std::string getBinHost();
void setHost(std::string host); ///< Sets hostname for connection manually.
int getSocket(); ///< Returns internal socket number.
std::string getError(); ///< Returns a string describing the last error that occured.