|
| 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) |
|
|
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 () |
|
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
class TRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >
Definition at line 87 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Builds a session waiting for packets in a multicast address.
TODO: ssrc constructor for multicast!
- Parameters
-
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. |
Definition at line 135 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Builds a session waiting for packets in a multicast address, with the specified ssrc identifier for the local source.
- Parameters
-
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. |
Definition at line 155 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Ensure a port number is even.
If it is an odd number, return the next lower (even) port number.
- Parameters
-
- Returns
- filtered (even) port number
Definition at line 392 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Ensure a port number is odd.
If it is an even number, return the next lower (odd) port number.
- Parameters
-
- Returns
- filtered (odd) port number
Definition at line 381 of file rtp.h.