This is the base session stack that will maintain all network audio activity.
More...
#include <phone.h>
|
void | disableStack (void) |
|
void | enableStack (void) |
|
microtimeout_t | getSchedulingTimeout (void) |
|
void | controlReceptionService (void) |
|
void | controlTransmissionService (void) |
|
timeval | getRTCPCheckInterval (void) |
|
size_t | dispatchDataPacket (void) |
|
virtual void | timerTick (void) |
|
virtual bool | isPendingData (microtimeout_t timeout) |
|
virtual void | run (void) |
| Single runnable method for this RTP stacks, schedules outgoing and incoming RTP data and RTCP packets. More...
|
|
size_t | takeInDataPacket (void) |
|
size_t | dispatchBYE (const std::string &str) |
|
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 () |
|
|
RTPDataChannel * | dso |
|
RTCPChannel * | cso |
|
This is the base session stack that will maintain all network audio activity.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m RTP stack for network audio.
Definition at line 175 of file phone.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
|
inlineprotectedvirtualinherited |
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
void RTPAudio::exit |
( |
const char * |
reason | ) |
|
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
- Parameters
-
timeout | maximum timeout to wait, in microseconds |
- Returns
- whether there are packets waiting to be picked
Definition at line 245 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
|
inlineprotectedvirtualinherited |
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Join a multicast group.
- Parameters
-
ia | address of the multicast group |
- Returns
- error code from the socket operation
Definition at line 289 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Leave a multicast group.
- Parameters
-
ia | address of the multicast group |
- Returns
- error code from the socket operation
Definition at line 315 of file rtp.h.
void RTPAudio::onGotGoodbye |
( |
const SyncSource & |
src, |
|
|
const std::string & |
reason |
|
) |
| |
|
private |
void RTPAudio::onGotHello |
( |
const SyncSource & |
src | ) |
|
|
private |
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
size_t TRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >::recvControl |
( |
unsigned char * |
buffer, |
|
|
size_t |
len, |
|
|
InetHostAddress & |
na, |
|
|
tpport_t & |
tp |
|
) |
| |
|
inlineprotectedinherited |
Receive data from the control channel/socket.
- Parameters
-
buffer | Buffer where to get data. |
len | Maximum number of octets to get. |
na | Source network address. |
tp | Source transport port. |
- Returns
- Number of octets actually read.
Definition at line 262 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
size_t TRTPSessionBase< RTPDataChannel, RTCPChannel, ServiceQueue >::recvData |
( |
unsigned char * |
buffer, |
|
|
size_t |
len, |
|
|
InetHostAddress & |
na, |
|
|
tpport_t & |
tp |
|
) |
| |
|
inlineprotectedinherited |
Receive data from the data channel/socket.
- Parameters
-
buffer | Memory region to read to. |
len | Maximum number of octets to get. |
na | Source network address. |
tp | Source transport port. |
- Returns
- Number of octets actually read.
Definition at line 220 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
|
inlineprotectedvirtualinherited |
Single runnable method for this RTP stacks, schedules outgoing and incoming RTP data and RTCP packets.
Definition at line 553 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
- Returns
- number of octets actually written
- Parameters
-
Definition at line 276 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
- Parameters
-
buffer | memory region to write from |
len | number of octets to write |
Definition at line 234 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Set the value of the TTL field in the sent packets.
- Parameters
-
- Returns
- error code from the socket operation
Definition at line 174 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
Activate stack and start service thread.
Definition at line 508 of file rtp.h.
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
|
inlineprotectedvirtualinherited |
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
template<class RTPDataChannel = DualRTPUDPIPv4Channel, class RTCPChannel = DualRTPUDPIPv4Channel, class ServiceQueue = AVPQueue>
unsigned RTPAudio::groups |
|
private |
The documentation for this class was generated from the following files: