TURN 协议
sgcWebSockets 中的 TURN(Traversal Using Relays around NAT)支持。在无法建立直接 P2P 连接时中继流量。
sgcWebSockets 中的 TURN(Traversal Using Relays around NAT)支持。在无法建立直接 P2P 连接时中继流量。
uses
sgcTURN_Client;
var
TURN: TsgcTURNClient;
begin
TURN := TsgcTURNClient.Create(nil);
TURN.Host := 'turn.example.com';
TURN.Port := 3478;
TURN.Credentials.Username := 'user';
TURN.Credentials.Password := 'pass';
TURN.Allocate;
end;