⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 q931pdu.h

📁 asn格式文件的编译器
💻 H
字号:
/*
 * Q931Pdu.h
 * 
 * Copyright (c) 2001 Institute for Information Industry, Taiwan, Republic of China 
 * (http://www.iii.org.tw/iiia/ewelcome.htm)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 1, or (at your option)
 * any later version.
 *
 * $Log: Q931pdu.h,v $ * Revision 1.1.1.1  2001/08/01 07:38:53  mangelo * Import to SourceForge *
 * Revision 1.1.1.1  2001/05/05 15:16:34  angelo
 * First CVS Version
 *
 *
 */

#ifndef Q931PDU_H
#define Q931PDU_H

#include <list>
#include "pointainer.h"
#include <netmon.h>

namespace ASN1 {
class CoderEnv;
}

struct Q931Decoder
{
    Q931Decoder(LPBYTE pFrame, int byteLeft, ASN1::CoderEnv* coderEnv) 
		: data(pFrame), size(byteLeft), offset(0), env(coderEnv){}
	int getPosition() const { return offset;}
	const unsigned char* data;
	int size;
	int offset;
    ASN1::CoderEnv* env;
};


class InformationElement;
class Q931PDU
{
public:
  public:
	Q931PDU();
	~Q931PDU();
    bool accept(Q931Decoder& decoder);
	void attachProperties(HFRAME hFrame, HPROPERTY hProperty);
    const char* getMessageTypeName() const;
  private:
	  typedef pointainer< std::list<InformationElement*> > IEList;
	  const unsigned char* data;
	  int len;
	  IEList ieList;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -