TsgcTURNClientProperties › Transport

Transport Property

Transport used to connect to the TURN server: UDP, TCP or TLS. Default is UDP.

Syntax

property Transport: TsgcStunTransport read FTransport write FTransport;

Default Value

Remarks

RFC 5766 inherits the STUN transport matrix: UDP is the default, with TCP and TLS-over-TCP also supported. Use stUDP for classic TURN deployments (and to combine with RetransmissionOptions), stTCP when UDP is blocked by the local network, and stTLS for encrypted transport. When TLS is selected the default TURN-over-TLS port is 5349.

Example

oTURN.Transport := stUDP;
oTURN.Host := 'turn.sgcwebsockets.com';
oTURN.Port := 3478;
oTURN.Allocate;

Back to Properties