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.
- Client
Builder - Builds a
Clientwith a chosen transaction timeout, retransmission schedule and handler. - Client
Transaction - ClientTransaction represents transaction in progress. If transaction is succeed or failed, f will be called provided by event. Concurrent access is invalid.