Main Page   Compound List   File List   Compound Members   File Members  

rtpacket.c File Reference

#include "speakfree.h"
#include <pwd.h>
#include <sys/param.h>

Defines

#define MAX_MISORDER   100
#define MAX_DROPOUT   3000
#define addSDES(item, text)

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 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)
int 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 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    strict
 

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


Variable Documentation

audio_descr_t adt[]
 

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:44:18 2004 for Speak-FreelyforUnix by doxygen1.2.18