Original Post
Ok, why I have I never seen this before?
And why didn''t I learn it in school?
And why isn''t it in any of my C nor C++ books!?
xps considering how friggin'' useful it is!
Magmai Kai Holmlor
"Oh, like you''ve never written buggy code" - Lee
"What I see is a system that _could do anything - but currently does nothing !" - Anonymous CEO
typedef struct {
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 */
u16 seq; /* sequence number */
u32 ts; /* timestamp */
u32 ssrc; /* synchronization source */
u32 csrc[1]; /* optional CSRC list */
} rtp_hdr_t;
|