#ifndef _RTP_STRUCT__H #define _RTP_STRUCT__H #include "rtp.h" #include "rtp_const.h" typedef struct _RTP_PORT { BYTE flag; BYTE sapIndex; WORD usrPort; WORD rtpPort; int fd; BYTE mode; // inactive/recv/send/sendrecv DWORD timer; // handshake timer BYTE times; // handshake times DWORD timeStamp; // current time stamp WORD inc; // timestamp increment RTP_SESSION sess; }RTP_PORT; typedef struct _RTP_PACKET { BYTE ver __attribute__((packed)); // version BYTE pt __attribute__((packed)); // payload type WORD sn __attribute__((packed)); // sequence number DWORD timeStamp __attribute__((packed)); DWORD ssrc __attribute__((packed)); // synchronization src BYTE payload[RTP_MAX_PAYLOAD_SIZE] __attribute__((packed)); }RTP_PACKET; #endif