Home || Architecture || Video Search || Visual Search || Scripts || Applications || 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 Fri Mar 19 10:32:55 2010 for ImpalaSrc by  doxygen 1.5.1