Skip to main content

Module client

Module client 

Source
Expand description

A Sans-I/O STUN client for talking to a STUN server. A Sans-I/O STUN client.

Sends Binding requests and matches the responses, applying the retransmission schedule the RFC specifies (an initial RTO, doubling per retry) so a lost request on a UDP path is retried rather than lost. Build one with ClientBuilder; drive it with datagrams and time.

Structs§

Client
Client simulates “connection” to STUN server.
ClientBuilder
Builds a Client with a chosen transaction timeout, retransmission schedule and handler.
ClientTransaction
ClientTransaction represents transaction in progress. If transaction is succeed or failed, f will be called provided by event. Concurrent access is invalid.