|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Functions | |
| struct | __attribute__ ((packed)) |
| TURN server configuration with credentials. | |
Variables | |
| turn_server_t | |
TURN Protocol Constants | |
| #define | TURN_DEFAULT_PORT 3478 |
| Standard TURN port (RFC 5766) | |
| #define | TURN_TLS_DEFAULT_PORT 5349 |
| TURN over TLS port (RFC 5766) | |
| #define | TURN_MAX_URL_LEN 64 |
| Maximum TURN URL length. | |
| #define | TURN_MAX_USERNAME_LEN 32 |
| Maximum TURN username length. | |
| #define | TURN_MAX_CREDENTIAL_LEN 64 |
| Maximum TURN credential length. | |
| #define | TURN_CREDENTIAL_EXPIRY_SECS (24 * 60 * 60) |
| Recommended credential expiration time (seconds) | |
This module defines TURN server configuration structures for WebRTC connectivity. TURN servers act as relay servers when direct peer-to-peer connections are not possible due to restrictive NAT or firewalls.
RFC 5766: Traversal Using Relays around NAT (TURN) RFC 8656: TURN Extensions for IPv6
| #define TURN_CREDENTIAL_EXPIRY_SECS (24 * 60 * 60) |
| #define TURN_DEFAULT_PORT 3478 |
| #define TURN_MAX_CREDENTIAL_LEN 64 |
| #define TURN_MAX_URL_LEN 64 |
| #define TURN_MAX_USERNAME_LEN 32 |
| #define TURN_TLS_DEFAULT_PORT 5349 |
| struct __attribute__ | ( | (packed) | ) |
#include <turn.h>
TURN server configuration with credentials.
Used in ACDS SESSION_CREATED response to provide WebRTC relay information. Includes time-limited credentials for secure TURN access.
Protocol Format:
URL Format Examples:
turn:discovery.ascii.chat:3478 (standard TURN)turns:discovery.ascii.chat:5349 (TURN over TLS)turn:relay.example.com:3478?transport=udp (UDP transport)turn:relay.example.com:3478?transport=tcp (TCP transport)Credential Types:
Wire Format (163 bytes total):
< Length of URL string (actual length)
< TURN server URL (e.g., "turn:discovery.ascii.chat:3478")
< Length of username string
< TURN authentication username
< Length of credential string
< Time-limited TURN credential/password
Definition at line 1 of file turn.h.