| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Processes (play and record) rtp traffic for all the active sessions.
Play - Timing is controlled by a timer fifo. When playing is done (reach packet count or end of file reached), RtspRtpProcessor will move session into pause state. Processor also enforces pause points and queued play requests for playing sessions.
Recording - Timing is controlled by a blocking select() on the incoming rtp port. Processor also enforces pause points. However, queued record requests are not supported.
Play and record processing are done in seperate independent threads. Processor has overload dection mechanism to reject processing new sessions if cpu can't handle another session.
Destructor Summary | |
virtual | ~RtspRtpProcessor() destructor |
Method Summary | |
bool | addInitalEvent(Sptr add inital rtp processor event. |
int | allocateRtpPort() allocates a rtp port pair |
bool | buildRtpPortList(const int low, const int high) build the rtp port pool. |
bool | deallocateRtpPort(const int port) deallocate a rtp port pair, false on failure |
bool | delEvent(Sptr delete session from rtp processor |
static void | destroy() frees the memory associated with singelton instance |
static RtspRtpProcessor & | instance() create a singelton object |
bool | playThreadLoaded() check if play thread is loaded. |
bool | recordThreadLoaded() check if record thread is loaded. |
void | startThread() start rtp processor threads |
void | stopThread() stop rtp processor threads |
Method Detail |
public virtual ~RtspRtpProcessor()
Method Detail |
public bool addInitalEvent(Sptrsession)
public int allocateRtpPort()
public bool buildRtpPortList(const int low, const int high)
public bool deallocateRtpPort(const int port)
public bool delEvent(Sptrsession)
public static void destroy()
public static RtspRtpProcessor & instance()
public bool playThreadLoaded()
public bool recordThreadLoaded()
public void startThread()
public void stopThread()
Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |