cabledriver.h

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

H
65
字号
#ifdef WIN32#include "..\config.h"#else#include "config.h"#endif#ifdef WITH_CABLE#ifndef __CABLE_DRIVER__#define __CABLE_DRIVER__#include "nulldriver.h"#include "cparamconfig.h"class CCableDriver:public CNullDriver {  public:    CCableDriver();    virtual ~ CCableDriver();    virtual bool Connect();    virtual bool Disconnect();    virtual int Read(char *pData, int nSize);    virtual int Write(char *pData, int nSize);    CParamConfig *GetRequest();  /** teste si la connection ip est ok */    bool IsAvailable();  /** connecte ? */    bool IsConnected();    SOCKET m_nSocket;  /** peripherique */    char *m_sDev;  /** Ip De Connection */    char *m_sConnectIp;  private:	  /** Parametre */     CParamConfig * m_cParam;	/** hote de destination */    char *m_sHost;	/** Port de connection */    char *m_sPort;		/** FullDuplex ? */    bool m_bFullDuplex;		/** Mutex */    bool m_MutexR;    bool m_MutexW;  protected:			// Protected attributes  /** connecte ? */     bool m_bIsConnected;  /** fullduplex ? */    char *m_sFull;};#endif#endif

⌨️ 快捷键说明

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