Komponenty WebRTC i P2P dla 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.
Dowiedz się więcej →UDP Server component for handling multiple datagram endpoints simultaneously.
Dowiedz się więcej →Session Traversal Utilities for NAT. Discover public IP addresses and port mappings behind NAT devices.
Dowiedz się więcej →STUN server implementation for NAT traversal assistance in peer-to-peer connections.
Dowiedz się więcej →Traversal Using Relays around NAT. Relay media when direct peer-to-peer connections fail.
Dowiedz się więcej →TURN relay server for media relay when direct P2P connections cannot be established.
Dowiedz się więcej →Interactive Connectivity Establishment. Automatically finds the best path between peers using STUN/TURN.
Dowiedz się więcej →WebRTC peer connection implementation for real-time audio, video, and data communication between browsers and applications.
Dowiedz się więcej →Komponenty klienta i serwera UDP dla Delphi i C++Builder. Datagramy unicast, broadcast i multicast w Windows, Linux, macOS, iOS i Android.
Dowiedz się więcej →Jak STUN odkrywa publiczny adres i typ NAT oraz jak wykorzystać komponenty klienta i serwera STUN w Delphi, aby połączenia peer-to-peer działały.
Dowiedz się więcej →Gdy bezpośrednie połączenie peer-to-peer zawodzi, TURN przekazuje ruch. Jak komponenty klienta i serwera TURN w Delphi wpisują się we wdrożenie ICE i WebRTC.
Dowiedz się więcej →Jak ICE zbiera kandydatów i wybiera działającą ścieżkę między peerami oraz jak sterować tym procesem z Delphi i C++Builder za pomocą komponentu klienta ICE.
Dowiedz się więcej →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;