diff options
Diffstat (limited to 'common/network/TcpSocket.h')
-rw-r--r-- | common/network/TcpSocket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/network/TcpSocket.h b/common/network/TcpSocket.h index b029bff2..17854e10 100644 --- a/common/network/TcpSocket.h +++ b/common/network/TcpSocket.h @@ -49,6 +49,9 @@ namespace network { /* Tunnelling support. */ int findFreeTcpPort (void); + void getHostAndPort(const char* hi, std::string* host, + int* port, int basePort=5900); + int getSockPort(int sock); class TcpSocket : public Socket { |