Protocolo TURN
Suporte ao TURN (Traversal Using Relays around NAT) no sgcWebSockets. Faça o relay do tráfego quando conexões P2P diretas não forem possíveis.
Suporte ao TURN (Traversal Using Relays around NAT) no sgcWebSockets. Faça o relay do tráfego quando conexões P2P diretas não forem possíveis.
uses
sgcP2P, sgcP2P_STUN_Types;
var
TURN: TsgcTURNClient;
begin
TURN := TsgcTURNClient.Create(nil);
TURN.Host := 'turn.example.com';
TURN.Port := 3478;
TURN.TURNOptions.Authentication.Credentials := stauLongTermCredential;
TURN.TURNOptions.Authentication.Username := 'user';
TURN.TURNOptions.Authentication.Password := 'pass';
TURN.Allocate;
end;