Classes |
struct | httprequest |
Defines |
#define | CMD_AUTH_REQUIRED "auth_required" |
#define | CMD_IDLE "idle" |
#define | CMD_STREAM "stream" |
#define | DEFAULT_LOGFILE "log/rtspd.log" |
#define | DEFAULT_PORT 8999 |
#define | ENABLE_CURLX_PRINTF |
#define | END_OF_HEADERS "\r\n\r\n" |
#define | MAXDOCNAMELEN 140000 |
#define | MAXDOCNAMELEN_TXT "139999" |
#define | RCMD_IDLE 1 /* told to sit idle */ |
#define | RCMD_NORMALREQ 0 /* default request, use the tests file normally */ |
#define | RCMD_STREAM 2 /* told to stream */ |
#define | REQBUFSIZ 150000 |
#define | REQBUFSIZ_TXT "149999" |
#define | REQUEST_DUMP "log/server.input" |
#define | REQUEST_KEYWORD_SIZE 256 |
#define | REQUEST_KEYWORD_SIZE_TXT "255" |
#define | RESPONSE_DUMP "log/server.response" |
#define | RTP_DATA_SIZE 12 |
#define | RTSPDVERSION "curl test suite RTSP server/0.1" |
#define | SET_RTP_PKT_CHN(p, c) ((p)[1] = (unsigned char)((c) & 0xFF)) |
#define | SET_RTP_PKT_LEN(p, l) |
#define | siginterrupt(x, y) do {} while(0) |
#define | STREAMTHIS "a string to stream 01234567890\n" |
Typedefs |
typedef RETSIGTYPE(* | SIGHANDLER_T )(int) |
Enumerations |
enum | {
DOCNUMBER_NOTHING = -7,
DOCNUMBER_QUIT = -6,
DOCNUMBER_BADCONNECT = -5,
DOCNUMBER_INTERNAL = -4,
DOCNUMBER_CONNECT = -3,
DOCNUMBER_WERULEZ = -2,
DOCNUMBER_404 = -1
} |
enum | reqprot_t { RPROT_NONE = 0,
RPROT_RTSP = 1,
RPROT_HTTP = 2
} |
Functions |
static RETSIGTYPE | exit_signal_handler (int signum) |
static int | get_request (curl_socket_t sock, struct httprequest *req) |
static void | install_signal_handlers (void) |
int | main (int argc, char *argv[]) |
static int | ProcessRequest (struct httprequest *req) |
static void | restore_signal_handlers (void) |
static int | send_doc (curl_socket_t sock, struct httprequest *req) |
static void | storerequest (char *reqbuf, size_t totalsize) |
Variables |
static const char * | doc404_HTTP = "</BODY></HTML>\n" |
static const char * | doc404_RTSP |
static const char * | docbadconnect = "HTTP/1.1 501 Forbidden you fool" END_OF_HEADERS |
static const char * | docconnect = "HTTP/1.1 200 Mighty fine indeed" END_OF_HEADERS |
static const char * | docquit = "HTTP/1.1 200 Goodbye" END_OF_HEADERS |
static volatile int | exit_signal = 0 |
SIG_ATOMIC_T | got_exit_signal = 0 |
static const char * | ipv_inuse = "IPv4" |
static bool | prevbounce = FALSE |
static long | prevpartno = -1 |
static long | prevtestno = -1 |
static const char * | RTP_DATA = "$_1234\n\0asdf" |
const char * | serverlogfile = DEFAULT_LOGFILE |
static int | serverlogslocked = 0 |