rtpdataheader.h
来自「KphoneSI (kpsi) is a SIP (Session Initia」· C头文件 代码 · 共 47 行
H
47 行
#ifndef RTPDATAHEADER_H#define RTPDATAHEADER_H// For 32bit intel machinestypedef short int16;typedef int int32;typedef unsigned int u_int32;typedef unsigned short u_int16;#define RTP_BIG_ENDIAN 0#define RTP_LITTLE_ENDIAN 1// RTP data headertypedef /*__attribute__ ((__packed__))*/ struct {#if RTP_BIG_ENDIAN unsigned int version:2; // protocol version unsigned int p:1; // padding flag unsigned int x:1; // header extension flag unsigned int cc:4; // CSRC count unsigned int m:1; // marker bit unsigned int pt:7; // payload type#elif RTP_LITTLE_ENDIAN unsigned int cc:4; // CSRC count unsigned int x:1; // header extension flag unsigned int p:1; // padding flag unsigned int version:2; // protocol version unsigned int pt:7; // payload type unsigned int m:1; // marker bit#else#error Define one of RTP_LITTLE_ENDIAN or RTP_BIG_ENDIAN#endif unsigned int seq:16; // sequence number u_int32 ts; // timestamp 32bits u_int32 ssrc; // synchronization source} rtp_hdr_t;typedef struct {//#elif RTP_LITTLE_ENDIAN .. only coded for this unsigned int id:8; // dtmf code unsigned int vol:6; // volume unsigned int res:1; // reserver unsigned int eoe:1; // end of event unsigned int dur:16; // duration} rtp_dtmf_t;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?