Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

TCPSocket * TCPServerSocket::accept (  )  throw (SocketException)

Blocks until a new connection is established on this socket or error.

Returns:
new connection socket
Exceptions:
SocketException thrown if attempt to accept a new connection fails

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 }


Generated on Thu Jan 13 09:13:09 2011 for ImpalaSrc by  doxygen 1.5.1