The requests a client sends to an Open Server application trigger events in the server. This causes the client’s server process, known as a thread, to execute a routine that processes the event. This routine is called an event handler.
There are many types of standard events defined internally by Server-Library, the most common of which are shown in this table:
Client request |
Event type |
Open Server event |
---|---|---|
ct_command(CS_LANG_CMD) ct_send |
Language |
SRV_LANGUAGE |
ct_command(CS_RPC_CMD) ct_send |
RPC |
SRV_RPC |
ct_cancel |
Attention |
SRV_ATTENTION |
ct_connect |
Connect |
SRV_CONNECT |
ct_close ct_exit |
Disconnect |
SRV_DISCONNECT |
Non client-initiated |
Start |
SRV_START |
Non client-initiated |
Stop |
SRV_STOP |
See “Events”.