Added a proxy in Output for getting the host (by Erik Zandvliet)
This commit is contained in:
parent
2d78e1e5f1
commit
d56e7f1408
7 changed files with 21 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue