TsgcSTUNClient › Events

TsgcSTUNClient Events

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

Request lifecycle

NameDescription
OnSTUNBeforeSendFires just before a STUN message is sent to the server, allowing last-minute inspection or modification of the outgoing message.
OnSTUNResponseSuccessFires when the STUN server returns a successful Binding Response with the client mapped address.
OnSTUNResponseErrorFires when the STUN server returns an error response; exposes the numeric Code and human-readable Reason.
OnSTUNExceptionFires when an unhandled exception is raised while processing STUN protocol messages.

All Events (alphabetical)

NameDescription
OnSTUNBeforeSendFires just before a STUN message is sent to the server, allowing last-minute inspection or modification of the outgoing message.
OnSTUNExceptionFires when an unhandled exception is raised while processing STUN protocol messages.
OnSTUNResponseErrorFires when the STUN server returns an error response; exposes the numeric Code and human-readable Reason.
OnSTUNResponseSuccessFires when the STUN server returns a successful Binding Response with the client mapped address.