#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.
◆ CMD_AUTH_REQUIRED
#define CMD_AUTH_REQUIRED "auth_required" |
◆ CMD_IDLE
◆ CMD_STREAM
#define CMD_STREAM "stream" |
◆ DEFAULT_LOGFILE
#define DEFAULT_LOGFILE "log/rtspd.log" |
◆ DEFAULT_PORT
#define DEFAULT_PORT 8999 |
◆ ENABLE_CURLX_PRINTF
#define ENABLE_CURLX_PRINTF |
◆ END_OF_HEADERS
#define END_OF_HEADERS "\r\n\r\n" |
◆ MAXDOCNAMELEN
#define MAXDOCNAMELEN 140000 |
◆ MAXDOCNAMELEN_TXT
#define MAXDOCNAMELEN_TXT "139999" |
◆ RCMD_IDLE
#define RCMD_IDLE 1 /* told to sit idle */ |
◆ RCMD_NORMALREQ
#define RCMD_NORMALREQ 0 /* default request, use the tests file normally */ |
◆ RCMD_STREAM
#define RCMD_STREAM 2 /* told to stream */ |
◆ REQBUFSIZ
◆ REQBUFSIZ_TXT
#define REQBUFSIZ_TXT "149999" |
◆ REQUEST_DUMP
#define REQUEST_DUMP "log/server.input" |
◆ REQUEST_KEYWORD_SIZE
#define REQUEST_KEYWORD_SIZE 256 |
◆ REQUEST_KEYWORD_SIZE_TXT
#define REQUEST_KEYWORD_SIZE_TXT "255" |
◆ RESPONSE_DUMP
◆ RTP_DATA_SIZE
◆ RTSPDVERSION
◆ SET_RTP_PKT_CHN
#define SET_RTP_PKT_CHN |
( |
|
p, |
|
|
|
c |
|
) |
| ((p)[1] = (unsigned char)((c) & 0xFF)) |
◆ SET_RTP_PKT_LEN
#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.
◆ siginterrupt
#define siginterrupt |
( |
|
x, |
|
|
|
y |
|
) |
| do {} while(0) |
◆ STREAMTHIS
#define STREAMTHIS "a string to stream 01234567890\n" |
◆ SIGHANDLER_T
◆ anonymous enum
Enumerator |
---|
DOCNUMBER_NOTHING | |
DOCNUMBER_QUIT | |
DOCNUMBER_BADCONNECT | |
DOCNUMBER_INTERNAL | |
DOCNUMBER_CONNECT | |
DOCNUMBER_WERULEZ | |
DOCNUMBER_404 | |
Definition at line 155 of file rtspd.c.
◆ reqprot_t
Enumerator |
---|
RPROT_NONE | |
RPROT_RTSP | |
RPROT_HTTP | |
Definition at line 83 of file rtspd.c.
◆ exit_signal_handler()
static RETSIGTYPE exit_signal_handler |
( |
int |
signum | ) |
|
|
static |
◆ get_request()
◆ install_signal_handlers()
static void install_signal_handlers |
( |
void |
| ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ ProcessRequest()
◆ restore_signal_handlers()
static void restore_signal_handlers |
( |
void |
| ) |
|
|
static |
◆ send_doc()
◆ storerequest()
static void storerequest |
( |
char * |
reqbuf, |
|
|
size_t |
totalsize |
|
) |
| |
|
static |
◆ doc404_HTTP
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.
◆ doc404_RTSP
Initial value:= "RTSP/1.0 404 Not Found\r\n"
Definition at line 193 of file rtspd.c.
◆ docbadconnect
const char* docbadconnect |
|
static |
Initial value:
Definition at line 175 of file rtspd.c.
◆ docconnect
Initial value:
Definition at line 171 of file rtspd.c.
◆ docquit
Initial value:
Definition at line 167 of file rtspd.c.
◆ exit_signal
volatile int exit_signal = 0 |
|
static |
◆ got_exit_signal
◆ ipv_inuse
const char* ipv_inuse = "IPv4" |
|
static |
◆ prevbounce
◆ prevpartno
◆ prevtestno
◆ RTP_DATA
const char* RTP_DATA = "$_1234\n\0asdf" |
|
static |
◆ serverlogfile
◆ serverlogslocked