webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <usrsctp.h>
#include "datachan.h"
Macros | |
#define | SIZEOF_ARRAY(x) (sizeof(x)/sizeof((x)[0])) |
#define | MAX_INPUT_LINE 1024 |
#define | MAX_CHANNELS 100 |
#define | INVALID_STREAM 0xFFFF |
Functions | |
void | send_error_response (struct socket *sock, struct rtcweb_datachannel_msg *msg, struct sctp_rcvinfo *rcv, uint16_t error) |
void | debug_printf (const char *format,...) |
int | main (int argc, char *argv[]) |
Variables | |
struct { | |
int8_t pending | |
uint8_t channel_type | |
uint16_t flags | |
uint16_t reverse | |
uint16_t reliability_params | |
} | channels_out [MAX_CHANNELS] |
struct { | |
uint8_t in_use | |
} | channels_in [MAX_CHANNELS] |
int | num_channels = 0 |
#define INVALID_STREAM 0xFFFF |
#define MAX_CHANNELS 100 |
#define MAX_INPUT_LINE 1024 |
void debug_printf | ( | const char * | format, |
... | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
void send_error_response | ( | struct socket * | sock, |
struct rtcweb_datachannel_msg * | msg, | ||
struct sctp_rcvinfo * | rcv, | ||
uint16_t | error | ||
) |
uint8_t channel_type |
struct { ... } channels_in[MAX_CHANNELS] |
struct { ... } channels_out[MAX_CHANNELS] |
uint8_t in_use |
int num_channels = 0 |
int8_t pending |
uint16_t reliability_params |
uint16_t reverse |