4
#include <sys/socket.h>
5
#include <netinet/in.h>
8
int sequence:16; /* sequence number: random */
9
int pt:7; /* payload type: 14 for MPEG audio */
10
int m:1; /* marker: 0 */
11
int cc:4; /* number of CSRC identifiers: 0 */
12
int x:1; /* number of extension headers: 0 */
13
int p:1; /* is there padding appended: 0 */
14
int v:2; /* version: 2 */
17
struct rtpheader { /* in network byte order */
19
int timestamp; /* start: random */
20
int ssrc; /* random */
21
int iAudioHeader; /* =0?! */
24
void initrtp(struct rtpheader *foo);
25
int sendrtp(int fd, struct sockaddr_in *sSockAddr, struct rtpheader *foo, const void *data,
27
int makesocket(char *szAddr, unsigned short port, unsigned char TTL,
28
struct sockaddr_in *sSockAddr);
29
void rtp_output(const char *mp3buffer, int mp3size);
32
int rtp_send(SOCKET s, struct rtpheader *foo, void *data, int len);
34
int rtp_socket(SOCKET * ps, char *Address, unsigned short port, int TTL);