Listening and responding to connection requests
- Last Updated: August 23, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
After you enable a server socket for listening using the ENABLE-CONNECTIONS( ) method, ABL listens on the
specified port for client connections. When a socket client sends a connection
request to this port, ABL automatically accepts the connection.
After accepting the connection, ABL posts a CONNECT event on the server socket and calls the CONNECT event procedure that you have specified using
the SET-CONNECT-PROCEDURE( ) method. The CONNECT event procedure executes, returning a handle to
a socket object created by ABL and passed as a parameter to the event procedure
context. This socket object, then, is the communications endpoint for the connection
on the server.
To listen for connections on a server socket using the CONNECT event procedure: