webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <unistd.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <usrsctp.h>
Classes | |
struct | channel |
struct | peer_connection |
struct | rtcweb_datachannel_open_request |
struct | rtcweb_datachannel_open_response |
struct | rtcweb_datachannel_ack |
Macros | |
#define | LINE_LENGTH (1024) |
#define | BUFFER_SIZE (1<<16) |
#define | NUMBER_OF_CHANNELS (100) |
#define | NUMBER_OF_STREAMS (100) |
#define | DATA_CHANNEL_PPID_CONTROL 50 |
#define | DATA_CHANNEL_PPID_DOMSTRING 51 |
#define | DATA_CHANNEL_PPID_BINARY 52 |
#define | DATA_CHANNEL_CLOSED 0 |
#define | DATA_CHANNEL_CONNECTING 1 |
#define | DATA_CHANNEL_OPEN 2 |
#define | DATA_CHANNEL_CLOSING 3 |
#define | DATA_CHANNEL_FLAGS_SEND_REQ 0x00000001 |
#define | DATA_CHANNEL_FLAGS_SEND_RSP 0x00000002 |
#define | DATA_CHANNEL_FLAGS_SEND_ACK 0x00000004 |
#define | DATA_CHANNEL_OPEN_REQUEST 0 |
#define | DATA_CHANNEL_OPEN_RESPONSE 1 |
#define | DATA_CHANNEL_ACK 2 |
#define | DATA_CHANNEL_RELIABLE 0 |
#define | DATA_CHANNEL_RELIABLE_STREAM 1 |
#define | DATA_CHANNEL_UNRELIABLE 2 |
#define | DATA_CHANNEL_PARTIAL_RELIABLE_REXMIT 3 |
#define | DATA_CHANNEL_PARTIAL_RELIABLE_TIMED 4 |
#define | DATA_CHANNEL_FLAG_OUT_OF_ORDER_ALLOWED 0x0001 |
#define | SCTP_PACKED __attribute__((packed)) |
Functions | |
void | debug_printf (const char *format,...) |
int | main (int argc, char *argv[]) |
Variables | |
struct peer_connection | peer_connection |
struct rtcweb_datachannel_open_request | SCTP_PACKED |
#define BUFFER_SIZE (1<<16) |
#define DATA_CHANNEL_ACK 2 |
#define DATA_CHANNEL_CLOSED 0 |
#define DATA_CHANNEL_CLOSING 3 |
#define DATA_CHANNEL_CONNECTING 1 |
#define DATA_CHANNEL_FLAG_OUT_OF_ORDER_ALLOWED 0x0001 |
#define DATA_CHANNEL_FLAGS_SEND_ACK 0x00000004 |
#define DATA_CHANNEL_FLAGS_SEND_REQ 0x00000001 |
#define DATA_CHANNEL_FLAGS_SEND_RSP 0x00000002 |
#define DATA_CHANNEL_OPEN 2 |
#define DATA_CHANNEL_OPEN_REQUEST 0 |
#define DATA_CHANNEL_OPEN_RESPONSE 1 |
#define DATA_CHANNEL_PARTIAL_RELIABLE_REXMIT 3 |
#define DATA_CHANNEL_PARTIAL_RELIABLE_TIMED 4 |
#define DATA_CHANNEL_PPID_BINARY 52 |
#define DATA_CHANNEL_PPID_CONTROL 50 |
#define DATA_CHANNEL_PPID_DOMSTRING 51 |
#define DATA_CHANNEL_RELIABLE 0 |
#define DATA_CHANNEL_RELIABLE_STREAM 1 |
#define DATA_CHANNEL_UNRELIABLE 2 |
#define LINE_LENGTH (1024) |
#define NUMBER_OF_CHANNELS (100) |
#define NUMBER_OF_STREAMS (100) |
struct sctp_auth_chunk SCTP_PACKED __attribute__((packed)) |
void debug_printf | ( | const char * | format, |
... | |||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
struct peer_connection peer_connection |
struct rtcweb_datachannel_ack SCTP_PACKED |