#include <rtsp.h>
Collaboration diagram for RTSP_Server:
Public Types | |
enum | event { EMPTY, DESCRIBE, PLAY, PAUSE, TEARDOWN, IS_DAEMON_ENABLED } |
Public Member Functions | |
RTSP_Server (int(*h)(void *, RTSP_Server *, RTSP_Server::event), void *handler_data, Session *_session=NULL) | |
~RTSP_Server () | |
void | main (void) |
Protected Member Functions | |
bool | process (Socket *s) |
string | make_sdp (string uri) |
string | make_transport (string req) |
int | handler (RTSP_Server::event event) |
Protected Attributes | |
Session * | session |
int(* | handler_f )(void *, RTSP_Server *, RTSP_Server::event) |
void * | handler_data |
void * | _busy |
string | part_of_request |
Definition at line 49 of file rtsp.h.
enum RTSP_Server::event |
RTSP_Server::RTSP_Server | ( | int(*)(void *, RTSP_Server *, RTSP_Server::event) | h, | |
void * | handler_data, | |||
Session * | _session = NULL | |||
) |
void RTSP_Server::main | ( | void | ) |
Definition at line 105 of file rtsp.cpp.
References Socket::accept(), D, Socket::listen(), Socket::poll(), process(), s, state, and Socket::STATE_IN.
Referenced by Streamer::Main().
bool RTSP_Server::process | ( | Socket * | s | ) | [protected] |
string RTSP_Server::make_sdp | ( | string | uri | ) | [protected] |
string RTSP_Server::make_transport | ( | string | req | ) | [protected] |
Definition at line 327 of file rtsp.cpp.
References String::split(), String::split_list_to_map(), and String::split_to_list().
int RTSP_Server::handler | ( | RTSP_Server::event | event | ) | [inline, protected] |
Definition at line 74 of file rtsp.h.
References handler_data, and handler_f.
Referenced by process().
Session* RTSP_Server::session [protected] |
int(* RTSP_Server::handler_f)(void *, RTSP_Server *, RTSP_Server::event) [protected] |
Referenced by handler(), and RTSP_Server().
void* RTSP_Server::handler_data [protected] |
void* RTSP_Server::_busy [protected] |
string RTSP_Server::part_of_request [protected] |