Added a proxy in Output for getting the host (by Erik Zandvliet)

This commit is contained in:
Thulinma 2016-02-12 15:51:54 +01:00
parent 2d78e1e5f1
commit d56e7f1408
7 changed files with 21 additions and 7 deletions

View file

@ -606,7 +606,7 @@ bool Socket::Connection::iwrite(std::string & buffer) {
} //iwrite
/// Gets hostname for connection, if available.
std::string Socket::Connection::getHost() {
std::string Socket::Connection::getHost() const {
return remotehost;
}

View file

@ -71,7 +71,7 @@ namespace Socket {
void drop(); ///< Close connection without shutdown.
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 getHost() const; ///< 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.