TsgcTURNClient › Methods

TsgcTURNClient Methods

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

Allocation

NameDescription
AllocateSends an ALLOCATE request to the TURN server to reserve a relayed transport address.
RefreshSends a REFRESH request to extend (or end) the current allocation lifetime.

Permissions

NameDescription
CreatePermissionInstalls a 5-minute permission that allows a specific peer IP to reach the relayed transport address.
ChannelBindBinds a 16-bit channel number (0x4000-0x7FFF) to a peer for low-overhead ChannelData exchange.

Data

NameDescription
SendIndicationSends a datagram to a peer wrapped in a SEND Indication (requires an active permission).
SendChannelDataSends a datagram to a peer using a bound channel, producing a smaller ChannelData message.

STUN

NameDescription
SendRequestInherited generic STUN request used to send a Binding Request over the TURN transport.
ClearResets the client state, releasing cached allocation, permissions and channel bindings.

Advanced

NameDescription
WriteDataWrites raw bytes directly on the underlying TURN transport; used for custom payloads and diagnostics.

All Methods (alphabetical)

NameDescription
AllocateSends an ALLOCATE request to the TURN server to reserve a relayed transport address.
ChannelBindBinds a 16-bit channel number (0x4000-0x7FFF) to a peer for low-overhead ChannelData exchange.
ClearResets the client state, releasing cached allocation, permissions and channel bindings.
CreatePermissionInstalls a 5-minute permission that allows a specific peer IP to reach the relayed transport address.
RefreshSends a REFRESH request to extend (or end) the current allocation lifetime.
SendChannelDataSends a datagram to a peer using a bound channel, producing a smaller ChannelData message.
SendIndicationSends a datagram to a peer wrapped in a SEND Indication (requires an active permission).
SendRequestInherited generic STUN request used to send a Binding Request over the TURN transport.
WriteDataWrites raw bytes directly on the underlying TURN transport; used for custom payloads and diagnostics.