TsgcUDPServer › Events

TsgcUDPServer Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
OnStartupFires once the UDP listener is bound and ready to accept datagrams.
OnShutdownFires once the UDP listener has stopped and no further datagrams will be accepted.
OnBeforeWatchDogFires before each WatchDog cycle so the application can inspect state and optionally suppress the automatic restart.

Data

NameDescription
OnUDPReadFires once per incoming UDP datagram, exposing the raw payload and the sender's IP/port.
OnUDPExceptionFires when the UDP listener thread catches an unhandled exception while receiving or sending datagrams.

Security

NameDescription
OnDTLSVerifyPeerFires during the DTLS handshake so the server can inspect and accept or reject the client certificate.

All Events (alphabetical)

NameDescription
OnBeforeWatchDogFires before each WatchDog cycle so the application can inspect state and optionally suppress the automatic restart.
OnDTLSVerifyPeerFires during the DTLS handshake so the server can inspect and accept or reject the client certificate.
OnShutdownFires once the UDP listener has stopped and no further datagrams will be accepted.
OnStartupFires once the UDP listener is bound and ready to accept datagrams.
OnUDPExceptionFires when the UDP listener thread catches an unhandled exception while receiving or sending datagrams.
OnUDPReadFires once per incoming UDP datagram, exposing the raw payload and the sender's IP/port.