OnAccept Event  
 

The OnAccept event is generated when a remote host connects to the server.

Syntax

Sub object_OnAccept ( [Index As Integer,] ByVal Handle As Variant )

Remarks

This event is generated when a client attempts to establish a connection with the server.

The Handle argument specifies the socket descriptor of the server that has accepted the connection. The ClientAddress property may be used to determine the IP address of the client. To prevent the client from completing the connection, call the Reject method.

After the client connection has been established and the worker thread for that client session has started, the OnConnect event will fire.

See Also

ClientAddress Property, Reject Method, OnConnect Event