Managing the server socket
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Managing the server socket
After you create and enable a server socket to listen for and accept connections, you can perform the following management functions on the server socket:
-
Control event sensitivity — At any time, you can
make the server socket stop receiving
CONNECTevents by setting itsSENSITIVEattribute toFALSE. You can, at any time, return it to listen forCONNECTevents by settingSENSITIVEtoTRUE. Thus, whenSENSITIVEisFALSE, ABL still listens on the specified port, but temporarily stops accepting connections and postingCONNECTevents. -
Disable listening for connections — You can permanently stop
the server socket from accepting connections by invoking its
DISABLE-CONNECTIONS( )method. This stops the server socket from listening on the current port for new connections. However, all currently-connected sockets remain connected. If a client attempts to connect on the port, it receives an error. -
Delete the server socket object — You can delete a server socket
object using the
DELETE OBJECTstatement. However, you must disable the server socket from listening for and accepting connections before you can delete it.