Blocks until a new connection is established on this socket or error.
Definition at line 268 of file PracticalSocket.cpp. References Socket::sockDesc. 00268 { 00269 int newConnSD; 00270 if ((newConnSD = ::accept(sockDesc, NULL, 0)) < 0) { 00271 throw SocketException("Accept failed (accept())", true); 00272 } 00273 00274 return new TCPSocket(newConnSD); 00275 }
|