TsgcUDPServer › Events
TsgcUDPServer Events
Events you can handle, grouped by purpose, followed by the full alphabetical list.
Lifecycle
| Name | Description |
| OnStartup | Fires once the UDP listener is bound and ready to accept datagrams. |
| OnShutdown | Fires once the UDP listener has stopped and no further datagrams will be accepted. |
| OnBeforeWatchDog | Fires before each WatchDog cycle so the application can inspect state and optionally suppress the automatic restart. |
Data
| Name | Description |
| OnUDPRead | Fires once per incoming UDP datagram, exposing the raw payload and the sender's IP/port. |
| OnUDPException | Fires when the UDP listener thread catches an unhandled exception while receiving or sending datagrams. |
Security
| Name | Description |
| OnDTLSVerifyPeer | Fires during the DTLS handshake so the server can inspect and accept or reject the client certificate. |
All Events (alphabetical)
| Name | Description |
| OnBeforeWatchDog | Fires before each WatchDog cycle so the application can inspect state and optionally suppress the automatic restart. |
| OnDTLSVerifyPeer | Fires during the DTLS handshake so the server can inspect and accept or reject the client certificate. |
| OnShutdown | Fires once the UDP listener has stopped and no further datagrams will be accepted. |
| OnStartup | Fires once the UDP listener is bound and ready to accept datagrams. |
| OnUDPException | Fires when the UDP listener thread catches an unhandled exception while receiving or sending datagrams. |
| OnUDPRead | Fires once per incoming UDP datagram, exposing the raw payload and the sender's IP/port. |