source: trunk/ETSI-Testsuites/ETSI_auto_IOT/adapter/src/Dispatcher/SipDissector.h @ 53

Last change on this file since 53 was 22, checked in by rings, 14 years ago
  • Property svn:executable set to *
File size: 825 bytes
Line 
1#ifndef SIP_DISSECTOR_H
2#define SIP_DISSECTOR_H
3
4#include "Dissector.h"
5#include <string>
6
7class SipDissector : public Dissector {
8
9 public:
10  SipDissector();
11  virtual ~SipDissector();
12  virtual SipDissector * Clone() const;
13  virtual bool Dissect(const unsigned char * pData, const ssize_t nDataLen);
14  virtual bool NeedReassembly() const;
15  virtual bool Reassemble(Dissector * pDissector, ProtocolInfo * pProtocolInfo);
16  virtual const EProtocolType GetUpperLayerType() const;
17  virtual bool IsPacketValid() const;
18  virtual bool FinishDissection();
19  virtual bool CreatesUnprocessedData() const;
20 protected:
21  ProtocolInfoElement * CreateLayerInfo();
22 private:
23  static const int HEADER_NOT_PARSED = -1;
24  static const int LENGTH_NOT_PARSED = -2;
25  static const int PARSING_ERROR = -3;
26  int m_nMessageLength;
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.