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-CALLBACK( ) method is used to name the CONNECT event procedure or method and to associate it with a server socket object. The CONNECT event procedure or method 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.
Note: The SET-CONNECT-PROCEDURE( ) method can also be used to name the event procedure, but this is only for procedures. Progress recommends the SET-CALLBACK() method that can be used for both procedures and methods.

If the SET-CALLBACK( ) method is not invoked, or if it fails, no CONNECT event procedure or method will be executed when the CONNECT event occurs.