diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-07-21 08:56:16 +0000 |
| commit | 6574e44f886740273676b6d73ef754385a36197f (patch) | |
| tree | c13b2c6f1bb178bc5adae67f47549ea6a86d7ec4 /src/Socket.cc | |
| parent | cd6b6e359135f88afffbaa31c126489aa9813571 (diff) | |
2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Converted int's to in32_t. long long int's are also converted to
int64_t
Diffstat (limited to 'src/Socket.cc')
| -rw-r--r-- | src/Socket.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Socket.cc b/src/Socket.cc index c94dc696..b8a01f6d 100644 --- a/src/Socket.cc +++ b/src/Socket.cc @@ -66,15 +66,15 @@ Socket& Socket::operator=(const Socket& s) { return *this; } -void Socket::beginListen(int port) const { +void Socket::beginListen(int32_t port) const { core->beginListen(port); } -void Socket::getAddrInfo(pair<string, int>& addrinfo) const { +void Socket::getAddrInfo(pair<string, int32_t>& addrinfo) const { core->getAddrInfo(addrinfo); } -void Socket::getPeerInfo(pair<string, int>& peerinfo) const { +void Socket::getPeerInfo(pair<string, int32_t>& peerinfo) const { core->getPeerInfo(peerinfo); } @@ -82,7 +82,7 @@ Socket* Socket::acceptConnection() const { return new Socket(core->acceptConnection()); } -void Socket::establishConnection(const string& host, int port) const { +void Socket::establishConnection(const string& host, int32_t port) const { core->establishConnection(host, port); } @@ -94,15 +94,15 @@ void Socket::closeConnection() const { core->closeConnection(); } -bool Socket::isWritable(int timeout) const { +bool Socket::isWritable(int32_t timeout) const { return core->isWritable(timeout); } -bool Socket::isReadable(int timeout) const { +bool Socket::isReadable(int32_t timeout) const { return core->isReadable(timeout); } -void Socket::writeData(const char* data, int len) const { +void Socket::writeData(const char* data, int32_t len) const { core->writeData(data, len); } @@ -110,11 +110,11 @@ void Socket::writeData(const string& str) const { core->writeData(str.c_str(), str.size()); } -void Socket::readData(char* data, int& len) const { +void Socket::readData(char* data, int32_t& len) const { core->readData(data, len); } -void Socket::peekData(char* data, int& len) const { +void Socket::peekData(char* data, int32_t& len) const { core->peekData(data, len); } |
