| 204 | } |
| 205 | |
| 206 | int CommunicatingSocket::recv(void *buffer, int bufferLen) |
| 207 | throw(SocketException) { |
| 208 | int rtn; |
| 209 | if ((rtn = ::recv(sockDesc, (raw_type *) buffer, bufferLen, 0)) < 0) { |
| 210 | throw SocketException("Received failed (recv())", true); |
| 211 | } |
| 212 | |
| 213 | return rtn; |
| 214 | } |
| 215 | |
| 216 | string CommunicatingSocket::getForeignAddress() |
| 217 | throw(SocketException) { |