ccRTP 2.1.2
|
#include <rtp.h>
Public Member Functions | |
TRTPSessionBase (const InetHostAddress &ia, tpport_t dataPort, tpport_t controlPort, uint32 membersSize, RTPApplication &app) | |
Builds a session waiting for packets in a host address. More... | |
TRTPSessionBase (uint32 ssrc, const InetHostAddress &ia, tpport_t dataPort, tpport_t controlPort, uint32 membersSize, RTPApplication &app) | |
Builds a session with the specified ssrc identifier for the local source. More... | |
TRTPSessionBase (const InetMcastAddress &ia, tpport_t dataPort, tpport_t controlPort, uint32 membersSize, RTPApplication &app, uint32 iface) | |
Builds a session waiting for packets in a multicast address. More... | |
TRTPSessionBase (uint32 ssrc, const InetMcastAddress &ia, tpport_t dataPort, tpport_t controlPort, uint32 membersSize, RTPApplication &app, uint32 iface) | |
Builds a session waiting for packets in a multicast address, with the specified ssrc identifier for the local source. More... | |
virtual size_t | dispatchBYE (const std::string &str) |
Socket::Error | setMcastTTL (uint8 ttl) |
Set the value of the TTL field in the sent packets. More... | |
virtual | ~TRTPSessionBase () |
RTPDataChannel * | getDSO (void) |
Protected Member Functions | |
bool | isPendingData (microtimeout_t timeout) |
InetHostAddress | getDataSender (tpport_t *port=NULL) const |
size_t | getNextDataPacketSize () const |
size_t | recvData (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp) |
Receive data from the data channel/socket. More... | |
void | setDataPeer (const InetAddress &host, tpport_t port) |
size_t | sendData (const unsigned char *const buffer, size_t len) |
SOCKET | getDataRecvSocket () const |
bool | isPendingControl (microtimeout_t timeout) |
InetHostAddress | getControlSender (tpport_t *port=NULL) const |
size_t | recvControl (unsigned char *buffer, size_t len, InetHostAddress &na, tpport_t &tp) |
Receive data from the control channel/socket. More... | |
void | setControlPeer (const InetAddress &host, tpport_t port) |
size_t | sendControl (const unsigned char *const buffer, size_t len) |
SOCKET | getControlRecvSocket () const |
Socket::Error | joinGroup (const InetMcastAddress &ia, uint32 iface) |
Join a multicast group. More... | |
Socket::Error | leaveGroup (const InetMcastAddress &ia) |
Leave a multicast group. More... | |
void | endSocket () |
Protected Attributes | |
RTPDataChannel * | dso |
RTCPChannel * | cso |
Private Member Functions | |
void | build (const InetHostAddress &ia, tpport_t dataPort, tpport_t controlPort) |
void | build (const InetMcastAddress &ia, tpport_t dataPort, tpport_t controlPort, uint32 iface) |
tpport_t | odd_port (tpport_t port) |
Ensure a port number is odd. More... | |
tpport_t | even_port (tpport_t port) |
Ensure a port number is even. More... | |
Private Attributes | |
tpport_t | dataBasePort |
tpport_t | controlBasePort |
Friends | |
class | RTPSessionBaseHandler |
|
inline |
Builds a session waiting for packets in a host address.
ia | Network address this socket is to be bound. |
dataPort | Transport port the data socket is to be bound. |
controlPort | Transport port the control socket is to be bound. |
membersSize | Initial size of the membership table. |
app | Application this session is associated to. |
|
inline |
Builds a session with the specified ssrc identifier for the local source.
ssrc | SSRC identifier for the local source. |
ia | Network address this socket is to be bound. |
dataPort | Transport port the data socket is to be bound. |
controlPort | Transport port the control socket is to be bound. |
membersSize | Initial size of the membership table. |
app | Application this session is associated to. |
|
inline |
Builds a session waiting for packets in a multicast address.
TODO: ssrc constructor for multicast!
ia | Multicast address this socket is to be bound. |
dataPort | Transport port the data socket is to be bound. |
controlPort | Transport port the control socket is to be bound. |
membersSize | Initial size of the membership table. |
app | Application this session is associated to. |
iface | Index (from 0 to n) of network interface to join to multicast group. |
|
inline |
Builds a session waiting for packets in a multicast address, with the specified ssrc identifier for the local source.
ssrc | SSRC identifier for the local source. |
ia | Multicast address this socket is to be bound. |
dataPort | Transport port the data socket is to be bound. |
controlPort | Transport port the control socket is to be bound. |
membersSize | Initial size of the membership table. |
app | Application this session is associated to. |
iface | Index (from 0 to n) of network interface to join to multicast group. |
|
inlinevirtual |
|
inlineprivate |
|
inlineprivate |
|
inlinevirtual |
Reimplemented in SingleThreadRTPSession< RTPDataChannel, RTCPChannel, ServiceQueue >.
|
inlineprotected |
|
inlineprivate |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprivate |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
friend |
|
private |
|
protected |
|
private |
|
protected |