Rev | Line | |
---|
[22] | 1 | #ifndef DISPATCH_INFO_H |
---|
| 2 | #define DISPATCH_INFO_H |
---|
| 3 | |
---|
| 4 | #include "ProtocolInfo.h" |
---|
| 5 | #include <list> |
---|
| 6 | #include <vector> |
---|
| 7 | |
---|
| 8 | #ifdef _MSC_VER |
---|
| 9 | typedef int ssize_t; |
---|
| 10 | #endif |
---|
| 11 | |
---|
| 12 | class DispatchInfo { |
---|
| 13 | |
---|
| 14 | public: |
---|
| 15 | DispatchInfo(); |
---|
| 16 | ~DispatchInfo(); |
---|
| 17 | const unsigned char * GetData() const; |
---|
| 18 | const ssize_t GetDataSize() const; |
---|
| 19 | void SetData(const unsigned char * pData, const ssize_t nDataSize); |
---|
| 20 | void AddProtocolInfo(ProtocolInfoElement * info); |
---|
| 21 | ProtocolInfo * DetachProtocolInfo(); |
---|
| 22 | ProtocolInfo * GetProtocolInfo() const; |
---|
| 23 | |
---|
| 24 | private: |
---|
| 25 | unsigned char * m_pData; |
---|
| 26 | ssize_t m_nDataSize; |
---|
| 27 | ProtocolInfo * m_pProtocolInfo; |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.