ascii-chat
0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
turn.h
Go to the documentation of this file.
1
41
#pragma once
42
43
#include <stdint.h>
44
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
49
// Pack network protocol structures tightly for wire format
50
#ifdef _WIN32
51
#pragma pack(push, 1)
52
#endif
53
94
typedef
struct
__attribute__
((packed)) {
95
uint8_t
url_len;
96
char
url[64];
97
uint8_t
username_len;
98
char
username[32];
99
uint8_t
credential_len;
100
char
credential[64];
101
}
turn_server_t
;
102
110
#define TURN_DEFAULT_PORT 3478
111
113
#define TURN_TLS_DEFAULT_PORT 5349
114
116
#define TURN_MAX_URL_LEN 64
117
119
#define TURN_MAX_USERNAME_LEN 32
120
122
#define TURN_MAX_CREDENTIAL_LEN 64
123
125
#define TURN_CREDENTIAL_EXPIRY_SECS (24 * 60 * 60)
// 24 hours
126
129
#ifdef _WIN32
130
#pragma pack(pop)
131
#endif
132
133
#ifdef __cplusplus
134
}
135
#endif
136
/* turn */
uint8_t
unsigned char uint8_t
Definition
common.h:56
turn_server_t
turn_server_t
Definition
turn.h:101
__attribute__
RGB pixel structure.
Definition
video/image.h:80
lib
network
webrtc
turn.h
Generated by
1.9.8