CS计算机代考程序代写 #ifndef RTP_H

#ifndef RTP_H
#define RTP_H

#include

#define RTP_START 0
#define RTP_END 1
#define RTP_DATA 2
#define RTP_ACK 3

typedef struct __attribute__ ((__packed__)) RTP_header {
uint8_t type; // 0: START; 1: END; 2: DATA; 3: ACK
uint16_t length; // Length of data; 0 for ACK, START and END packets
uint32_t seq_num;
uint32_t checksum; // 32-bit CRC
} rtp_header_t;

#endif