UDPTLSession Class Reference

UDPTL session. More...

#include <yatertp.h>

Inheritance diagram for UDPTLSession:
UDPSession RTPProcessor GenObject

List of all members.

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 RTPTransportcreateTransport ()
virtual void udptlRecv (const void *data, int len, u_int16_t seq, bool recovered)=0

Detailed Description

UDPTL session.

A bidirectional UDPTL session usable for T.38


Constructor & Destructor Documentation

~UDPTLSession (  ) 

Destructor

UDPTLSession ( u_int16_t  maxLen = 250,
u_int8_t  maxSec = 2 
) [protected]

UDPTL Session constructor

Parameters:
maxLen Maximum length of UDPTL packet, at least longest primary IFP + 5 bytes
maxSec Maximum number of secondary IFPs, set to zero to disable

Member Function Documentation

virtual RTPTransport* createTransport (  )  [protected, virtual]

Create a new UDPTL transport for this session. Override this method to create objects derived from RTPTransport.

Returns:
Pointer to the new transport or NULL on failure

Reimplemented from UDPSession.

bool localAddr ( SocketAddr addr  )  [inline]

Set the local network address of the RTP transport of this session

Parameters:
addr New local RTP transport address
Returns:
True if address set, false if a failure occured
u_int16_t maxLen (  )  const [inline]

Get the maximum UDPTL packet length

Returns:
Maximum length of UDPTL packet length in bytes
u_int8_t maxSec (  )  const [inline]

Get the maximum number of UDPTL secondary IFPs

Returns:
Maximum number of secondary IFPs, zero if disabled
virtual void rtpData ( const void *  data,
int  len 
) [virtual]

This method is called to send or process an UDPTL packet

Parameters:
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

Parameters:
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

Parameters:
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

Parameters:
data Pointer to IFP block to send as primary
len Length of primary IFP block
seq Sequence number to incorporate in message
Returns:
True if data block was sent, false if an error occured

The documentation for this class was generated from the following file:
Generated on Thu Apr 8 18:22:39 2010 for Yate by  doxygen 1.6.3