TsgcTURNClientProperties › IPVersion

IPVersion Property

Address family used to resolve the TURN server; defaults to IPv4.

Syntax

property IPVersion: TIdIPVersion read GetIPVersion write SetIPVersion;

Default Value

Remarks

Set IPVersion to Id_IPv4 or Id_IPv6 to select the address family used by the underlying socket when resolving Host. The value also determines the REQUESTED-ADDRESS-FAMILY attribute sent in the ALLOCATE request (RFC 6156), which asks the TURN server to allocate a relayed transport address in the same family.

Example

oTURN.IPVersion := Id_IPv4;
oTURN.Host := 'turn.sgcwebsockets.com';
oTURN.Port := 3478;
oTURN.Allocate;

Back to Properties