rtp.c File Reference

#include <config.h>
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "console.h"

Include dependency graph for rtp.c:

Go to the source code of this file.

Classes

struct  rtpbits
struct  rtpheader

Defines

#define _STDINT_H
#define strchr   index
#define strrchr   rindex
#define memcpy(d, s, n)   bcopy ((s), (d), (n))
#define memmove(d, s, n)   bcopy ((s), (d), (n))

Functions

char * alloca ()
char * strchr ()
char ** strrchr ()
void initrtp (struct rtpheader *foo)
int sendrtp (int fd, struct sockaddr_in *sSockAddr, struct rtpheader *foo, const void *data, int len)
int makesocket (char *szAddr, unsigned short port, unsigned char TTL, struct sockaddr_in *sSockAddr)


Define Documentation

#define _STDINT_H

Definition at line 6 of file rtp.c.

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

Definition at line 36 of file rtp.c.

#define memmove ( d,
s,
 )     bcopy ((s), (d), (n))

Definition at line 37 of file rtp.c.

#define strchr   index

Definition at line 31 of file rtp.c.

#define strrchr   rindex

Definition at line 32 of file rtp.c.


Function Documentation

char* alloca (  ) 

Referenced by sendrtp().

void initrtp ( struct rtpheader foo  ) 

Definition at line 74 of file rtp.c.

References rtpheader::b, rtpbits::cc, rtpheader::iAudioHeader, rtpbits::m, rtpbits::p, rtpbits::pt, rtpbits::sequence, rtpheader::ssrc, rtpheader::timestamp, rtpbits::v, and rtpbits::x.

Referenced by main().

int makesocket ( char *  szAddr,
unsigned short  port,
unsigned char  TTL,
struct sockaddr_in *  sSockAddr 
)

Definition at line 111 of file rtp.c.

References error_printf().

Referenced by main().

Here is the call graph for this function:

int sendrtp ( int  fd,
struct sockaddr_in *  sSockAddr,
struct rtpheader foo,
const void *  data,
int  len 
)

Definition at line 94 of file rtp.c.

References alloca(), and memmove.

Referenced by rtp_output().

Here is the call graph for this function:

char* strchr (  ) 

char* * strrchr (  ) 


Generated on Sun Dec 2 11:35:29 2007 for LAME by  doxygen 1.5.2