diff options
Diffstat (limited to 'src/Socket.cc')
| -rw-r--r-- | src/Socket.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Socket.cc b/src/Socket.cc index f4e0862d..973aafe6 100644 --- a/src/Socket.cc +++ b/src/Socket.cc @@ -53,14 +53,18 @@ Socket& Socket::operator=(const Socket& s) { return *this; } -void Socket::beginListen() const { - core->beginListen(); +void Socket::beginListen(int port) const { + core->beginListen(port); } void Socket::getAddrInfo(pair<string, int>& addrinfo) const { core->getAddrInfo(addrinfo); } +void Socket::getPeerInfo(pair<string, int>& peerinfo) const { + core->getPeerInfo(peerinfo); +} + Socket* Socket::acceptConnection() const { return new Socket(core->acceptConnection()); } |
