StartListen method

Attempt to listen on the supplied port for incoming client connections.

Applies to
CHMllpServer

Declaration
Public Sub StartListen(ByVal Port As Long)

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.


Chameleon VB 6.0 Documentation