|
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) |
Public Member Functions inherited from UDPSession | |
| virtual | ~UDPSession () |
| bool | initTransport () |
| bool | initGroup (int msec=0, Thread::Priority prio=Thread::Normal, const String &affinity=String::empty()) |
| bool | remoteAddr (SocketAddr &addr, bool sniff=false) |
| bool | setBuffer (int bufLen=4096) |
| bool | setTOS (int tos) |
| Socket * | rtpSock () |
| bool | drillHole () |
| void | setTimeout (int interval) |
| RTPTransport * | transport () const |
| virtual void | transport (RTPTransport *trans) |
Public Member Functions inherited from RTPProcessor | |
| RTPProcessor (DebugEnabler *dbg=0, const char *traceId=0) | |
| virtual | ~RTPProcessor () |
| RTPGroup * | group () const |
| virtual void | rtcpData (const void *data, int len) |
| virtual void | getStats (String &stats) const |
| virtual void | incWrongSrc () |
| unsigned int | wrongSrc () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | toString () const |
| virtual const String & | traceId () const |
| virtual void * | getObject (const String &name) const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from RTPDebug | |
| RTPDebug (DebugEnabler *dbg, const char *traceId) | |
| RTPDebug (RTPSession *session) | |
| DebugEnabler * | dbg () const |
| const String & | dbgTraceId () const |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Protected Member Functions | |
| UDPTLSession (u_int16_t maxLen=250, u_int8_t maxSec=2, DebugEnabler *dbg=0, const char *traceId=0) | |
| virtual void | timerTick (const Time &when) |
| virtual RTPTransport * | createTransport () |
| virtual void | udptlRecv (const void *data, int len, u_int16_t seq, bool recovered)=0 |
Protected Member Functions inherited from UDPSession | |
| UDPSession (DebugEnabler *dbg=0, const char *traceId=0) | |
| virtual void | timeout (bool initial) |
Protected Member Functions inherited from RTPProcessor | |
| void | group (RTPGroup *newgrp) |
Protected Member Functions inherited from RTPDebug | |
| void | setDebug (DebugEnabler *dbg, const char *traceId) |
Additional Inherited Members | |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Static Public Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Protected Attributes inherited from UDPSession | |
| RTPTransport * | m_transport |
| u_int64_t | m_timeoutTime |
| u_int64_t | m_timeoutInterval |
Protected Attributes inherited from RTPProcessor | |
| unsigned int | m_wrongSrc |
Protected Attributes inherited from RTPDebug | |
| DebugEnabler * | m_dbg |
| String | m_traceId |
UDPTL session.
A bidirectional UDPTL session usable for T.38
| ~UDPTLSession | ( | ) |
Destructor
|
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 |
| dbg | Session DebugEnabler |
| traceId | Session trace ID |
References RTPDebug::dbg(), maxLen(), maxSec(), and GenObject::traceId().
|
protectedvirtual |
Create a new UDPTL transport for this session. Override this method to create objects derived from RTPTransport.
Reimplemented from UDPSession.
|
inline |
Set the local network address of the RTP transport of this session
| addr | New local RTP transport address |
|
inline |
Get the maximum UDPTL packet length
Referenced by UDPTLSession().
|
inline |
Get the maximum number of UDPTL secondary IFPs
Referenced by UDPTLSession().
|
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.
|
protectedvirtual |
Method called periodically to push any asynchronous data or statistics
| when | Time to use as base in all computing |
Implements RTPProcessor.
|
protectedpure 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 |