nulldriver.h

来自「PPP协议的实现演示」· C头文件 代码 · 共 50 行

H
50
字号
/***************************************************************************
                          nulldriverin.h  -  description
                             -------------------
    begin                : Sun Apr 29 2001
    copyright            : (C) 2001 by Birdy57 & Surfufu
    email                :
***************************************************************************/
 
/***************************************************************************
 *                                                                         *
 *   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 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/ 
    
#ifndef NULLDRIVERIN_H
#define NULLDRIVERIN_H
    
#include "cparamconfig.h"
#include "cmsgerror.h"
    
/**
  *@author Birdy57 & Surfufu
  */ 
    

class CNullDriver 
 {  
public:
CNullDriver();    
virtual ~ CNullDriver();    

	// Connection */
	virtual bool Connect();    
	// Deconnection */
	virtual bool Disconnect();    

	// Ecriture de nSize octet,
	// la fonction retourne le nombre d'octet reelement ecrit ou ERROR 
    virtual int Write(char *pData, int nSize);    
	// Lecture de nSize octet(s) 
    virtual int Read(char *pData, int nSize);    

  /** Fournit le pointeur sur la structure des parametres */ 
	virtual CParamConfig * GetRequest();    
	// Lecture du nr de l'erreur 
    virtual int GetErrorNbr();    

	// on est connect

⌨️ 快捷键说明

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