.TH "SingleThreadRTPSession< RTPDataChannel, RTCPChannel, ServiceQueue >" 3 "Sat Oct 27 2018" "ccRTP" \" -*- nroff -*- .ad l .nh .SH NAME SingleThreadRTPSession< RTPDataChannel, RTCPChannel, ServiceQueue > \- This template class adds the threading aspect to the \fBRTPSessionBase\fP template in one of the many possible ways\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits Thread, and \fBTRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSingleThreadRTPSession\fP (const InetHostAddress &ia, tpport_t dataPort=\fBDefaultRTPDataPort\fP, tpport_t controlPort=0, int pri=0, uint32 memberssize=\fBMembershipBookkeeping::defaultMembersHashSize\fP, \fBRTPApplication\fP &app=\fBdefaultApplication\fP())" .br .ti -1c .RI "\fBSingleThreadRTPSession\fP (uint32 ssrc, const InetHostAddress &ia, tpport_t dataPort=\fBDefaultRTPDataPort\fP, tpport_t controlPort=0, int pri=0, uint32 memberssize=\fBMembershipBookkeeping::defaultMembersHashSize\fP, \fBRTPApplication\fP &app=\fBdefaultApplication\fP())" .br .ti -1c .RI "\fBSingleThreadRTPSession\fP (const InetMcastAddress &ia, tpport_t dataPort=\fBDefaultRTPDataPort\fP, tpport_t controlPort=0, int pri=0, uint32 memberssize=\fBMembershipBookkeeping::defaultMembersHashSize\fP, \fBRTPApplication\fP &app=\fBdefaultApplication\fP(), uint32 iface=0)" .br .ti -1c .RI "\fBSingleThreadRTPSession\fP (uint32 ssrc, const InetMcastAddress &ia, tpport_t dataPort=\fBDefaultRTPDataPort\fP, tpport_t controlPort=0, int pri=0, uint32 memberssize=\fBMembershipBookkeeping::defaultMembersHashSize\fP, \fBRTPApplication\fP &app=\fBdefaultApplication\fP(), uint32 iface=0)" .br .ti -1c .RI "\fB~SingleThreadRTPSession\fP ()" .br .ti -1c .RI "void \fBstartRunning\fP ()" .br .RI "Activate stack and start service thread\&. " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fBdisableStack\fP (void)" .br .ti -1c .RI "void \fBenableStack\fP (void)" .br .ti -1c .RI "\fBmicrotimeout_t\fP \fBgetSchedulingTimeout\fP (void)" .br .ti -1c .RI "void \fBcontrolReceptionService\fP (void)" .br .ti -1c .RI "void \fBcontrolTransmissionService\fP (void)" .br .ti -1c .RI "timeval \fBgetRTCPCheckInterval\fP (void)" .br .ti -1c .RI "size_t \fBdispatchDataPacket\fP (void)" .br .ti -1c .RI "virtual void \fBtimerTick\fP (void)" .br .ti -1c .RI "virtual bool \fBisPendingData\fP (\fBmicrotimeout_t\fP timeout)" .br .ti -1c .RI "virtual void \fBrun\fP (void)" .br .RI "Single runnable method for this RTP stacks, schedules outgoing and incoming RTP data and RTCP packets\&. " .ti -1c .RI "size_t \fBtakeInDataPacket\fP (void)" .br .ti -1c .RI "size_t \fBdispatchBYE\fP (const std::string &str)" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP .SS "template .br class SingleThreadRTPSession< RTPDataChannel, RTCPChannel, ServiceQueue >" This template class adds the threading aspect to the \fBRTPSessionBase\fP template in one of the many possible ways\&. It inherits from a single execution thread that schedules sending of outgoing packets and receipt of incoming packets\&. .PP \fBAuthor:\fP .RS 4 Federico Montesino Pouzols fedemp@altern.org .RE .PP .PP \fBExamples: \fP .in +1c \fBaudiorx\&.cpp\fP, \fBaudiotx\&.cpp\fP, \fBccrtptest\&.cpp\fP, \fBrtphello\&.cpp\fP, \fBrtplisten\&.cpp\fP, and \fBrtpsend\&.cpp\fP\&. .SH "Constructor & Destructor Documentation" .PP .SS "template \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::\fBSingleThreadRTPSession\fP (const InetHostAddress & ia, tpport_t dataPort = \fC\fBDefaultRTPDataPort\fP\fP, tpport_t controlPort = \fC0\fP, int pri = \fC0\fP, uint32 memberssize = \fC\fBMembershipBookkeeping::defaultMembersHashSize\fP\fP, \fBRTPApplication\fP & app = \fC\fBdefaultApplication\fP()\fP)\fC [inline]\fP" .SS "template \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::\fBSingleThreadRTPSession\fP (uint32 ssrc, const InetHostAddress & ia, tpport_t dataPort = \fC\fBDefaultRTPDataPort\fP\fP, tpport_t controlPort = \fC0\fP, int pri = \fC0\fP, uint32 memberssize = \fC\fBMembershipBookkeeping::defaultMembersHashSize\fP\fP, \fBRTPApplication\fP & app = \fC\fBdefaultApplication\fP()\fP)\fC [inline]\fP" .SS "template \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::\fBSingleThreadRTPSession\fP (const InetMcastAddress & ia, tpport_t dataPort = \fC\fBDefaultRTPDataPort\fP\fP, tpport_t controlPort = \fC0\fP, int pri = \fC0\fP, uint32 memberssize = \fC\fBMembershipBookkeeping::defaultMembersHashSize\fP\fP, \fBRTPApplication\fP & app = \fC\fBdefaultApplication\fP()\fP, uint32 iface = \fC0\fP)\fC [inline]\fP" .SS "template \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::\fBSingleThreadRTPSession\fP (uint32 ssrc, const InetMcastAddress & ia, tpport_t dataPort = \fC\fBDefaultRTPDataPort\fP\fP, tpport_t controlPort = \fC0\fP, int pri = \fC0\fP, uint32 memberssize = \fC\fBMembershipBookkeeping::defaultMembersHashSize\fP\fP, \fBRTPApplication\fP & app = \fC\fBdefaultApplication\fP()\fP, uint32 iface = \fC0\fP)\fC [inline]\fP" .SS "template \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::~\fBSingleThreadRTPSession\fP ()\fC [inline]\fP" .SH "Member Function Documentation" .PP .SS "template void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::controlReceptionService (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::controlTransmissionService (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::disableStack (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template size_t \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::dispatchBYE (const std::string & str)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Reimplemented from \fBTRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >\fP\&. .SS "template size_t \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::dispatchDataPacket (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::enableStack (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template timeval \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::getRTCPCheckInterval (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template \fBmicrotimeout_t\fP \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::getSchedulingTimeout (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template virtual bool \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::isPendingData (\fBmicrotimeout_t\fP timeout)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .SS "template virtual void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::run (void)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .PP Single runnable method for this RTP stacks, schedules outgoing and incoming RTP data and RTCP packets\&. .SS "template void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::startRunning ()\fC [inline]\fP" .PP Activate stack and start service thread\&. .PP \fBExamples: \fP .in +1c \fBaudiorx\&.cpp\fP, \fBaudiotx\&.cpp\fP, \fBccrtptest\&.cpp\fP, and \fBrtphello\&.cpp\fP\&. .SS "template size_t \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::takeInDataPacket (void)\fC [inline]\fP, \fC [protected]\fP" .SS "template virtual void \fBSingleThreadRTPSession\fP< RTPDataChannel, RTCPChannel, ServiceQueue >::timerTick (void)\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP" .SH "Author" .PP Generated automatically by Doxygen for ccRTP from the source code\&.