Main Page   Compound List   File List   Compound Members   File Members  

rtpacket.c File Reference

#include "netfone.h"

Defines

#define bcopy(s, d, l)   memcpy(d, s, l)
#define bzero(d, l)   memset(d, 0, l)
#define MAX_MISORDER   100
#define MAX_DROPOUT   3000
#define addSDES(item, text)
#define commonLength(pk)   (*((unsigned short *) (((char *) (pk)) + 2)))

Functions

int isrtp (unsigned char *pkt, int len)
int isValidRTCPpacket (unsigned char *p, int len)
int isRTCPByepacket (unsigned char *p, int len)
int isRTCPAPPpacket (unsigned char *p, int len, char *name, unsigned char **app_ptr)
int rtp_make_sdes (char **pkt, unsigned long ssrc_i, int port, int exact, int strict)
int rtp_make_bye (unsigned char *p, unsigned long ssrc_i, char *raison, int strict)
int rtp_make_app (unsigned char *p, unsigned long ssrc_i, int strict, char *type, char *content)
LONG rtpout (soundbuf *sb, unsigned long ssrc_i, unsigned long timestamp_i, unsigned short seq_i, int spurt)
int parseSDES (unsigned char *packet, struct rtcp_sdes_request *r)
void copySDESitem (char *s, char *d)

Variables

audio_descr_t adt []

Define Documentation

#define addSDES item,
text   
 

Value:

*ap++ = item; *ap++ = l = strlen(text); \
                                                        bcopy(text, ap, l); ap += l

#define bcopy s,
d,
l       memcpy(d, s, l)
 

#define bzero d,
l       memset(d, 0, l)
 

#define commonLength pk       (*((unsigned short *) (((char *) (pk)) + 2)))
 

#define MAX_DROPOUT   3000
 

#define MAX_MISORDER   100
 


Function Documentation

void copySDESitem char *    s,
char *    d
 

int isRTCPAPPpacket unsigned char *    p,
int    len,
char *    name,
unsigned char **    app_ptr
 

int isRTCPByepacket unsigned char *    p,
int    len
 

int isrtp unsigned char *    pkt,
int    len
 

int isValidRTCPpacket unsigned char *    p,
int    len
 

int parseSDES unsigned char *    packet,
struct rtcp_sdes_request   r
 

int rtp_make_app unsigned char *    p,
unsigned long    ssrc_i,
int    strict,
char *    type,
char *    content
 

int rtp_make_bye unsigned char *    p,
unsigned long    ssrc_i,
char *    raison,
int    strict
 

int rtp_make_sdes char **    pkt,
unsigned long    ssrc_i,
int    port,
int    exact,
int    strict
 

LONG rtpout soundbuf   sb,
unsigned long    ssrc_i,
unsigned long    timestamp_i,
unsigned short    seq_i,
int    spurt
 


Variable Documentation

audio_descr_t adt[] [static]
 

Initial value:

 {

  {AE_PCMU,  8000, 1},  
  {AE_MAX,       8000, 1},      
  {AE_G721,  8000, 1},  
  {AE_GSM,       8000, 1},      
  {AE_G723,  8000, 1},  
  {AE_IDVI,  8000, 1},  
  {AE_IDVI, 16000, 1},  
  {AE_LPC,       8000, 1},      
  {AE_PCMA,  8000, 1},  
  {AE_MAX,              0, 1},  
  {AE_L16,      44100, 2},      
  {AE_L16,      44100, 1},      
  {AE_MAX,              0, 1},  
}


Generated on Tue Feb 10 08:26:36 2004 for Speak-FreelyforWindows by doxygen1.2.18