Try OpenEdge Now
skip to main content
ABL Reference
Handle-based Object Events Reference : CONNECT event


AVM Detects — A client has connected to a port that the server has enabled connections to; applies only to server socket objects.
AVM Action — The AVM invokes the CONNECT event procedure.
The SET-CONNECT-PROCEDURE( ) method is used to name the CONNECT event procedure and to associate it with a server socket object. The CONNECT event procedure must accept one input parameter of type HANDLE. This is the handle to the implicitly created socket object for this connection. It is via this socket object that the server communicates with the client.
If the SET-CONNECT-PROCEDURE( ) method is not invoked, or if it fails, no connection procedure will be executed when the CONNECT event occurs.