2G ems initial
This commit is contained in:
33
omc/plat/rtp/src/include/rtp_struct.h
Normal file
33
omc/plat/rtp/src/include/rtp_struct.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user