next up previous contents index
Next: Recv Up: Functions and Procedures Previous: GetSocketOptions

Listen

   

Declaration:

Function Listen (Sock,MaxConnect:Longint) : Boolean;

Description:

Listen listens for up to MaxConnect connections from socket Sock. The socket Sock must be of type SOCK_STREAM or Sock_SEQPACKET.

The function returns True if a connection was accepted, False if an error occurred.

Errors:

Errors are reported in SocketError, and include the following:

SYS_EBADF
The socket descriptor is invalid.
SYS_ENOTSOCK
The descriptor is not a socket.
SYS_EOPNOTSUPP
The socket type doesn't support the Listen operation.

See also:

Socket, Bind, Connect



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998