rtp.h

Go to the documentation of this file.
00001 #ifndef LAME_RTP_H
00002 #define LAME_RTP_H
00003 
00004 #include <sys/socket.h>
00005 #include <netinet/in.h>
00006 
00007 struct rtpbits {
00008     int     sequence:16;     /* sequence number: random */
00009     int     pt:7;            /* payload type: 14 for MPEG audio */
00010     int     m:1;             /* marker: 0 */
00011     int     cc:4;            /* number of CSRC identifiers: 0 */
00012     int     x:1;             /* number of extension headers: 0 */
00013     int     p:1;             /* is there padding appended: 0 */
00014     int     v:2;             /* version: 2 */
00015 };
00016 
00017 struct rtpheader {           /* in network byte order */
00018     struct rtpbits b;
00019     int     timestamp;       /* start: random */
00020     int     ssrc;            /* random */
00021     int     iAudioHeader;    /* =0?! */
00022 };
00023 
00024 void    initrtp(struct rtpheader *foo);
00025 int     sendrtp(int fd, struct sockaddr_in *sSockAddr, struct rtpheader *foo, const void *data,
00026                 int len);
00027 int     makesocket(char *szAddr, unsigned short port, unsigned char TTL,
00028                    struct sockaddr_in *sSockAddr);
00029 void    rtp_output(const char *mp3buffer, int mp3size);
00030 
00031 #if 0
00032 int     rtp_send(SOCKET s, struct rtpheader *foo, void *data, int len);
00033 
00034 int     rtp_socket(SOCKET * ps, char *Address, unsigned short port, int TTL);
00035 #endif
00036 
00037 
00038 #endif

Generated on Sun Dec 2 11:34:18 2007 for LAME by  doxygen 1.5.2