Yate
|
UDPTL session. More...
#include <yatertp.h>
Public Member Functions | |
~UDPTLSession () | |
bool | localAddr (SocketAddr &addr) |
u_int16_t | maxLen () const |
u_int8_t | maxSec () const |
virtual void | rtpData (const void *data, int len) |
bool | udptlSend (const void *data, int len, u_int16_t seq) |
Protected Member Functions | |
UDPTLSession (u_int16_t maxLen=250, u_int8_t maxSec=2) | |
virtual void | timerTick (const Time &when) |
virtual RTPTransport * | createTransport () |
virtual void | udptlRecv (const void *data, int len, u_int16_t seq, bool recovered)=0 |
UDPTL session.
A bidirectional UDPTL session usable for T.38
~UDPTLSession | ( | ) |
Destructor
UDPTLSession | ( | u_int16_t | maxLen = 250 , |
u_int8_t | maxSec = 2 |
||
) | [protected] |
UDPTL Session constructor
maxLen | Maximum length of UDPTL packet, at least longest primary IFP + 5 bytes |
maxSec | Maximum number of secondary IFPs, set to zero to disable |
virtual RTPTransport* createTransport | ( | ) | [protected, virtual] |
Create a new UDPTL transport for this session. Override this method to create objects derived from RTPTransport.
Reimplemented from UDPSession.
bool localAddr | ( | SocketAddr & | addr | ) | [inline] |
Set the local network address of the RTP transport of this session
addr | New local RTP transport address |
u_int16_t maxLen | ( | ) | const [inline] |
Get the maximum UDPTL packet length
u_int8_t maxSec | ( | ) | const [inline] |
Get the maximum number of UDPTL secondary IFPs
virtual void rtpData | ( | const void * | data, |
int | len | ||
) | [virtual] |
This method is called to send or process an UDPTL packet
data | Pointer to raw UDPTL data |
len | Length of the data packet |
Reimplemented from RTPProcessor.
virtual void timerTick | ( | const Time & | when | ) | [protected, virtual] |
Method called periodically to push any asynchronous data or statistics
when | Time to use as base in all computing |
Implements RTPProcessor.
virtual void udptlRecv | ( | const void * | data, |
int | len, | ||
u_int16_t | seq, | ||
bool | recovered | ||
) | [protected, pure virtual] |
Method called when UDPTL data is received
data | Pointer to IFP block |
len | Length of the IFP block |
seq | Sequence number of the block |
recovered | True if the IFP block was recovered after data loss |
bool udptlSend | ( | const void * | data, |
int | len, | ||
u_int16_t | seq | ||
) |
Send UDPTL data over the transport, add older blocks for error recovery
data | Pointer to IFP block to send as primary |
len | Length of primary IFP block |
seq | Sequence number to incorporate in message |