soListen (Function) |
Top Previous Next |
The soListen function marks the socket as listening for incoming connection attempts. Any incoming connection attempts will be queued pending acceptance by the soAccept function. If the queue is full, subsequent connection attempts will be refused.
The socket must be bound to a local address with the soBind function before calling this function.
Input: socket : SYSHANDLE Handle to the socket.
backlog : INT (default 1) The maximum number of pending connections allowed.
Returns: INT
Declaration: FUNCTION soListen : INT;
Example:
|