OnAccept Event

The OnAccept event is generated when a remote host connects to a listening socket.

Syntax

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

Remarks

This event is generated for sockets that are listening for connections from a remote host. A connection with the remote system is not actually established until it has been accepted by the listening server.

The Handle argument specifies the socket descriptor of the listening socket. To accept the connection, a socket calls its Accept method with argument Handle.

The PeerAddress or PeerName properties may be used to determine the name of the remote host that is establishing the connection. Note that this information may not be available until after the Accept method is called to accept the connection.

See Also

PeerAddress Property, PeerName Property, Accept Method, Reject Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.