StartListen method
Attempt to listen on the supplied port for incoming client connections.
Applies to
Declaration
procedure StartListen(Port : Integer);
Description
This function requires a running message loop (see RunMessageLoop) in order to receive connections.
Blocking: Function blocks until a port can be successfully listened on or an error occurs.
Throws: Function will throw an exception if the port is in use, or the operating system reports any other error.
Events: None.
By default, the listener will listen on all local interfaces. To make it listen on a specific local interface use the Host property to set the IP address of the interface to use.
Parameters |
Port | Port to listen on. |