sipxmedialib  Version 3.3
Classes | Macros | Typedefs | Functions
NetInTask.h File Reference
#include "rtcp/RtcpConfig.h"
#include "os/OsTask.h"
#include "os/OsLock.h"
#include "os/OsSocket.h"
#include "os/OsRWMutex.h"
#include "os/OsMutex.h"
#include "mp/MpTypes.h"
#include "mp/MpRtpBuf.h"
#include "mp/MpMisc.h"
Include dependency graph for NetInTask.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rtpSession
 
struct  netInTaskMsg
 
struct  __MprRtcpStats
 
class  NetInTask
 Task that listen for packets in incoming RTP streams. More...
 

Macros

#define IP_HEADER_SIZE   20
 Size of IP packet header. More...
 
#define UDP_HEADER_SIZE   8
 Size of UDP packet header. More...
 
#define ETHERNET_MTU   1500
 Maximum Transmission Unit for Ethernet frame. More...
 
#define UDP_MTU   (ETHERNET_MTU - IP_HEADER_SIZE - UDP_HEADER_SIZE)
 Maximum Transmission Unit for UDP packet. More...
 
#define RTP_MTU   (UDP_MTU-12)
 Maximum Transmission Unit for RTP packet. More...
 
#define RTCP_MTU   (UDP_MTU-12)
 
#define RTP_DIR_IN   1
 
#define RTP_DIR_OUT   2
 
#define RTP_DIR_NEW   4
 
#define NET_TASK_MAX_MSG_LEN   sizeof(netInTaskMsg)
 
#define NET_TASK_MAX_FD_PAIRS   300
 

Typedefs

typedef struct __MprRtcpStats MprRtcpStats
 
typedef struct __MprRtcpStatsMprRtcpStatsPtr
 
typedef struct rtpSessionrtpHandle
 

Functions

uint32_t rand_timer32 ()
 
rtpHandle StartRtpSession (OsSocket *socket, int direction, char type)
 
void FinishRtpSession (rtpHandle h)
 

Macro Definition Documentation

#define IP_HEADER_SIZE   20

Size of IP packet header.

#define UDP_HEADER_SIZE   8

Size of UDP packet header.

#define ETHERNET_MTU   1500

Maximum Transmission Unit for Ethernet frame.

#define UDP_MTU   (ETHERNET_MTU - IP_HEADER_SIZE - UDP_HEADER_SIZE)

Maximum Transmission Unit for UDP packet.

#define RTP_MTU   (UDP_MTU-12)

Maximum Transmission Unit for RTP packet.

#define RTCP_MTU   (UDP_MTU-12)
#define RTP_DIR_IN   1
#define RTP_DIR_OUT   2
#define RTP_DIR_NEW   4
#define NET_TASK_MAX_MSG_LEN   sizeof(netInTaskMsg)
#define NET_TASK_MAX_FD_PAIRS   300

Typedef Documentation

typedef struct __MprRtcpStats MprRtcpStats
typedef struct rtpSession* rtpHandle

Function Documentation

uint32_t rand_timer32 ( )
rtpHandle StartRtpSession ( OsSocket *  socket,
int  direction,
char  type 
)
void FinishRtpSession ( rtpHandle  h)