packet.h
682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Modificado por: @Felipe Lacet
* Ultima Atualização: 08/10/2008
*
* packet.h
*
*/
#ifndef PACKET_H_
#define PACKET_H_
//#include "global_init.h"
#include "bitutil_hal.h"
#define PACKET_SIZE (188)
class Packet{
public:
Packet(unsigned char* packet);
~Packet();
unsigned char* getPayloadBeginingAtUnitStarted();
BOOL hasPointerField();
BOOL hasPayload();
U8 getPayloadLength();
unsigned char * getPayloadCopy();
U8 getPayloadBeginingAtUnitStartedLength();
U8 getPointerField();
U16 getPid();
U8 getAdaptationFieldLength();
U32 getContinuityCounter();
BOOL hasAdaptationField();
BOOL parser();
private:
unsigned char* packet;
};
#endif /*PACKET_H_*/