1234567891011121314151617181920212223242526 |
- #ifndef __POC_CODE_H_
- #define __POC_CODE_H_
- #define PROTOCOL_ERROR 0xFFFFFFFF
- #include "datatype.h"
- T_UINT32 packet_encode(
- T_UINT8* buf,T_UINT32 buf_size,
- T_UINT8 name_cmd,
- const T_UINT8* protobuf,T_UINT32 protosize);
- T_UINT32 packet_decode(
- T_UINT8* buf,T_UINT32 buf_size,
- struct Protocol_Descriptor* descriptor);
- T_UINT32 pa_rtp_heartbeat(T_BYTE* buffer,int len,int uid) ;
- T_UINT32 hdr_rtp_encode(
- T_UINT8* buf,T_UINT32 buf_size,
- rtp_hdr_t* rtp_hdr);
- T_UINT32 hdr_rtp_decode(const T_UINT8* buf,T_UINT32 buf_size,rtp_hdr_t* rtp_hdr);
- T_UINT32 packet_rtp_encode(
- T_UINT8 * buf, T_UINT32 buf_size,
- rtp_hdr_t* rtp_hdr,
- const T_UINT8 * data, T_UINT32 size);
- #endif
|