TsgcUDPServer › Methods

TsgcUDPServer Methods

Public methods grouped by purpose, followed by the full alphabetical list.

Lifecycle

NameDescription
StartStarts the server from a secondary thread so the calling thread is not blocked while bindings are opened.
StopStops the server from a secondary thread so the calling thread is not blocked while the listener is torn down.
ReStartStops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime.

Bindings

NameDescription
AddBindingAdds a new listening endpoint (IP/port) to the server without restarting the currently active bindings.
RemoveBindingRemoves the listening endpoint matching the given IP/port and closes its socket without stopping the server.

Messaging

NameDescription
WriteDataSends a single UDP datagram from the server to a specific peer address and port, optionally from a chosen local binding.

DTLS

NameDescription
ClearDTLSDiscards the cached DTLS session state so the next datagram triggers a fresh DTLS handshake with every peer.

All Methods (alphabetical)

NameDescription
AddBindingAdds a new listening endpoint (IP/port) to the server without restarting the currently active bindings.
ClearDTLSDiscards the cached DTLS session state so the next datagram triggers a fresh DTLS handshake with every peer.
RemoveBindingRemoves the listening endpoint matching the given IP/port and closes its socket without stopping the server.
ReStartStops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime.
StartStarts the server from a secondary thread so the calling thread is not blocked while bindings are opened.
StopStops the server from a secondary thread so the calling thread is not blocked while the listener is torn down.
WriteDataSends a single UDP datagram from the server to a specific peer address and port, optionally from a chosen local binding.