TsgcUDPServer › Methods
Public methods grouped by purpose, followed by the full alphabetical list.
| Name | Description |
|---|---|
| Start | Starts the server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the server from a secondary thread so the calling thread is not blocked while the listener is torn down. |
| ReStart | Stops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime. |
| Name | Description |
|---|---|
| AddBinding | Adds a new listening endpoint (IP/port) to the server without restarting the currently active bindings. |
| RemoveBinding | Removes the listening endpoint matching the given IP/port and closes its socket without stopping the server. |
| Name | Description |
|---|---|
| WriteData | Sends a single UDP datagram from the server to a specific peer address and port, optionally from a chosen local binding. |
| Name | Description |
|---|---|
| ClearDTLS | Discards the cached DTLS session state so the next datagram triggers a fresh DTLS handshake with every peer. |
| Name | Description |
|---|---|
| AddBinding | Adds a new listening endpoint (IP/port) to the server without restarting the currently active bindings. |
| ClearDTLS | Discards the cached DTLS session state so the next datagram triggers a fresh DTLS handshake with every peer. |
| RemoveBinding | Removes the listening endpoint matching the given IP/port and closes its socket without stopping the server. |
| ReStart | Stops and then restarts the server from a secondary thread, useful after changing bindings or ports at runtime. |
| Start | Starts the server from a secondary thread so the calling thread is not blocked while bindings are opened. |
| Stop | Stops the server from a secondary thread so the calling thread is not blocked while the listener is torn down. |
| WriteData | Sends a single UDP datagram from the server to a specific peer address and port, optionally from a chosen local binding. |