OnConnect Event  
 

The OnConnect event is generated when a connection is established.

Syntax

Sub object_OnConnect ( [Index As Integer] )

Remarks

The OnConnect event is generated when a connection is made with a remote host as a result of a Connect method call, or when an Accept method call is completed. This event is only generated for asynchronous sockets when the Blocking property is set to False.

See Also

Accept Method, Connect Method, OnDisconnect Event