#include <cc++/rtp.h>
Inheritance diagram for T_RTPSocket::
Public Methods | |
T_RTPSocket (const InetAddress &ia, tpport_t port=5004, int pri=0) | |
T_RTPSocket (const InetMcastAddress &bind, tpport_t port=5004, int pri=0) | |
~T_RTPSocket () | |
sockerror_t | Connect (const InetHostAddress &ia, tpport_t port=0) |
sockerror_t | Connect (const InetMcastAddress &ia, tpport_t port=0) |
sockerror_t | joinGroup (const InetMcastAddress &ia, tpport_t port=0) |
sockerror_t | leaveGroup (const InetMcastAddress &ia) |
sockerror_t | setMcastTTL (uint8 ttl) |
Protected Methods | |
bool | isPendingData (microtimeout_t timeout) |
size_t | readData (unsigned char *buffer, size_t len) |
size_t | writeData (const unsigned char *const buffer, size_t len) |
bool | isPendingControl (microtimeout_t timeout) |
size_t | readControl (unsigned char *buffer, size_t len) |
size_t | writeControl (const unsigned char *const buffer, size_t len) |
void | endSocket () |
Private Methods | |
sockerror_t | connect (const InetAddress &ia, tpport_t port=0) |
tpport_t | odd_port (tpport_t port) |
tpport_t | even_port (tpport_t port) |
Private Attributes | |
tpport_t | base |
dataSocket * | dso |
controlSocket * | cso |
Generic RTP protocol stack for exchange of realtime data. This stack uses the concept of packet send and receive queues to schedule and buffer outgoing packets and to arrange or reorder incoming packets as they arrive. A single service thread both schedules sending of outgoing packets and receipt of incoming packets.
audiorx.cpp, audiotx.cpp, and rtphello.cpp.
Definition at line 2147 of file rtp.h.
|
|
|
|
|
Stack destructor. |
|
Connect to a multicast group and start the service thread. If no port is specified then it is assumed to be the same as the locally bound port number. |
|
Connect to a foreign host and start the service thread. If no port is specified then it is assumed to be the same as the locally bound port number.
Definition at line 2187 of file rtp.h. Referenced by joinGroup().
|
|
Connect to a foriegn RTP socket and start the service thread. If no port is specified then it is assumed to be the same as the locally bound port number.
Definition at line 2325 of file rtp.h. Referenced by Connect().
|
|
Definition at line 2312 of file rtp.h. Referenced by ~T_RTPSocket().
|
|
Ensure a port number is even. If it is an odd number, return the next lower (even) port number.
Definition at line 2364 of file rtp.h. Referenced by T_RTPSocket(), and connect().
|
|
|
|
|
|
Join a multicast group.
|
|
Leave a multicast group.
|
|
Ensure a port number is odd. If it is an even number, return the next lower (odd) port number.
Definition at line 2353 of file rtp.h. Referenced by T_RTPSocket(), and connect().
|
|
|
|
|
|
Set the value of the TTL field in the sent packets.
|
|
|
|
|
|
|
|
|
|
|