Listen for connections on a socket.
Source position: socketsh.inc line 162
function fplisten(  | 
s: cint;  | 
backlog: cint  | 
):cint;  | 
fpListen listens for up to backlog connections from socket S. The socket S must be of type SOCK_STREAM or Sock_SEQPACKET.
The function returns 0 if a connection was accepted, -1 if an error occurred.
Errors are reported in SocketError, and include the following:
  | 
Create new socket.  | 
|
  | 
Bind a socket to an address.  | 
|
  | 
Open a connection to a server socket.  |