⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtpdataheader.h

📁 KphoneSI (kpsi) is a SIP (Session Initiation Protocol) user agent for Linux, with which you can in
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -