| 265 | } |
| 266 | |
| 267 | TCPSocket *TCPServerSocket::accept() throw(SocketException) { |
| 268 | int newConnSD; |
| 269 | if ((newConnSD = ::accept(sockDesc, NULL, 0)) < 0) { |
| 270 | throw SocketException("Accept failed (accept())", true); |
| 271 | } |
| 272 | |
| 273 | return new TCPSocket(newConnSD); |
| 274 | } |
| 275 | |
| 276 | void TCPServerSocket::setListen(int queueLen) throw(SocketException) { |
| 277 | if (listen(sockDesc, queueLen) < 0) { |
nothing calls this directly
no test coverage detected