rtci-turn 0.2.1

Sans-I/O TURN client (RFC 8656, RFC 6062 TCP allocations) for WebRTC
Documentation

rtci-turn

A TURN client: allocations for UDP relayed addresses of either family or both, permissions, channels, refreshes, the long-term credential mechanism, and TCP allocations (Connect, ConnectionAttempt, a data connection per peer). There is no TURN server.

Specifications

  • RFC 8656, Traversal Using Relays around NAT (TURN)
  • RFC 6062, TURN extensions for TCP allocations
  • RFC 8489, STUN, as TURN uses it

Clause-by-clause status, with the test that proves each clause: rfc8656, rfc6062.

Use

client::Client runs allocations against a server; the root crate (rtci) uses it to gather relayed candidates over UDP, TCP, TLS and DTLS, so most applications only configure a turn: / turns: URL on the peer connection.

Sans-I/O

Datagrams in, datagrams out, deadlines polled: the transport to the server (UDP socket, TCP or TLS connection) belongs to the caller. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.