Componentes WebRTC e P2P para Delphi
Peer-to-peer communication with STUN, TURN, ICE protocols, data channels, and NAT traversal for direct client connections.
Peer-to-peer communication with STUN, TURN, ICE protocols, data channels, and NAT traversal for direct client connections.
Build peer-to-peer applications with full NAT traversal and real-time communication support.
UDP Client component for connectionless datagram communication. Ideal for low-latency real-time applications.
Saiba mais →UDP Server component for handling multiple datagram endpoints simultaneously.
Saiba mais →Session Traversal Utilities for NAT. Discover public IP addresses and port mappings behind NAT devices.
Saiba mais →STUN server implementation for NAT traversal assistance in peer-to-peer connections.
Saiba mais →Traversal Using Relays around NAT. Relay media when direct peer-to-peer connections fail.
Saiba mais →TURN relay server for media relay when direct P2P connections cannot be established.
Saiba mais →Interactive Connectivity Establishment. Automatically finds the best path between peers using STUN/TURN.
Saiba mais →WebRTC peer connection implementation for real-time audio, video, and data communication between browsers and applications.
Saiba mais →Componentes cliente e servidor UDP para Delphi e C++Builder. Datagramas unicast, broadcast e multicast no Windows, Linux, macOS, iOS e Android.
Saiba mais →Como o STUN descobre o seu endereço público e o tipo de NAT, e como usar os componentes cliente e servidor STUN em Delphi para fazer conexões peer-to-peer funcionarem.
Saiba mais →Quando a conexão direta entre pares falha, o TURN retransmite o tráfego. Como os componentes cliente e servidor TURN em Delphi se encaixam em uma implantação ICE e WebRTC.
Saiba mais →Como o ICE reúne candidatos e escolhe um caminho funcional entre pares, e como comandá-lo em Delphi e C++Builder com o componente cliente ICE.
Saiba mais →Discover your public IP address and port mapping behind NAT.
uses
sgcP2P, sgcP2P_STUN_Classes, sgcSocket_Classes;
procedure TForm1.DiscoverPublicIP;
begin
sgcSTUNClient1.Host := 'stun.l.google.com';
sgcSTUNClient1.Port := 19302;
sgcSTUNClient1.SendRequest;
end;
procedure TForm1.sgcSTUNClient1STUNResponseSuccess(Sender: TObject;
const aSocket: TsgcSocketConnection;
const aMessage: TsgcSTUN_Message;
const aBinding: TsgcSTUN_ResponseBinding);
begin
Memo1.Lines.Add('Public IP: ' + aBinding.RemoteIP);
Memo1.Lines.Add('Public Port: ' + IntToStr(aBinding.RemotePort));
end;