#include "server_setup.h"
#include "curlx.h"
#include "getpart.h"
#include "util.h"
#include "server_sockaddr.h"
#include "memdebug.h"
Go to the source code of this file.
#define CMD_AUTH_REQUIRED "auth_required" |
#define CMD_STREAM "stream" |
#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_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 SET_RTP_PKT_CHN |
( |
|
p, |
|
|
|
c |
|
) |
| ((p)[1] = (unsigned char)((c) & 0xFF)) |
#define SET_RTP_PKT_LEN |
( |
|
p, |
|
|
|
l |
|
) |
| |
Value:(((
p)[2] = (
unsigned char)(((l) >> 8) & 0xFF)), \
((
p)[3] = (
unsigned char)((l) & 0xFF)))
Definition at line 91 of file rtspd.c.
#define siginterrupt |
( |
|
x, |
|
|
|
y |
|
) |
| do {} while(0) |
#define STREAMTHIS "a string to stream 01234567890\n" |
Enumerator |
---|
DOCNUMBER_NOTHING |
|
DOCNUMBER_QUIT |
|
DOCNUMBER_BADCONNECT |
|
DOCNUMBER_INTERNAL |
|
DOCNUMBER_CONNECT |
|
DOCNUMBER_WERULEZ |
|
DOCNUMBER_404 |
|
Definition at line 155 of file rtspd.c.
Enumerator |
---|
RPROT_NONE |
|
RPROT_RTSP |
|
RPROT_HTTP |
|
Definition at line 83 of file rtspd.c.
static RETSIGTYPE exit_signal_handler |
( |
int |
signum | ) |
|
|
static |
static void install_signal_handlers |
( |
void |
| ) |
|
|
static |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
static void restore_signal_handlers |
( |
void |
| ) |
|
|
static |
static void storerequest |
( |
char * |
reqbuf, |
|
|
size_t |
totalsize |
|
) |
| |
|
static |
Initial value:= "HTTP/1.1 404 Not Found\r\n"
"Connection: close\r\n"
"Content-Type: text/html"
"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n"
"<HTML><HEAD>\n"
"<TITLE>404 Not Found</TITLE>\n"
"</HEAD><BODY>\n"
"<H1>Not Found</H1>\n"
"The requested URL was not found on this server.\n"
"<P><HR><ADDRESS>" RTSPDVERSION "</ADDRESS>\n" "</BODY></HTML>\n"
Definition at line 179 of file rtspd.c.
Initial value:= "RTSP/1.0 404 Not Found\r\n"
Definition at line 193 of file rtspd.c.
const char* docbadconnect |
|
static |
Initial value:
Definition at line 175 of file rtspd.c.
Initial value:
Definition at line 171 of file rtspd.c.
Initial value:
Definition at line 167 of file rtspd.c.
volatile int exit_signal = 0 |
|
static |
const char* ipv_inuse = "IPv4" |
|
static |
const char* RTP_DATA = "$_1234\n\0asdf" |
|
static |