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

📄 moether.h

📁 MONA是为数不多的C++语言编写的一个很小的操作系统
💻 H
字号:
/*!    \file  MoEther.h    \brief 僀乕僒僱僢僩張棟僋儔僗 僿僢僟    class MoEther    Copyright (c) 2004 Yamami    All rights reserved.    License=MIT/X Licnese    \author  Yamami     \version $Revision: 1.1 $    \date   create:2004/08/12 update:$Date: 2004/09/04 17:50:56 $*/#ifndef _MONA_MOETHER_#define _MONA_MOETHER_#include <sys/types.h>#include <monapi.h>#include "MoPacUtl.h"#include "MonesDefine.h"#include "AbstractMonic.h"#include "MoArp.h"/*!  *  \struct ETHER_FRAME *  \brief 僀乕僒僱僢僩僼儗乕儉峔憿懱 */typedef struct{    byte  dstmac[6];   // 憲怣愭 MAC ID    byte  srcmac[6];   // 憲怣尦 MAC ID    word    type;     // 僼儗乕儉僞僀僾 Frame type(DIX) or frame length(IEEE)    byte   data[0x600];// Data}ETHER_FRAME;/*!    MoEther class*/class MoEther{      public:        //僐儞僗僩儔僋僞    MoEther();    ~MoEther();    void etherInit(AbstractMonic*);    int setEtherFrame(byte* , int);    int getEtherFrame(ETHER_FRAME* );    int receiveEther();    void sendEther(byte* , dword , dword);  private:    //僀乕僒僱僢僩僼儗乕儉曐帩儕僗僩    List<ETHER_FRAME*>* Ether_FrameList_;        //NIC僪儔僀僶    AbstractMonic* insAbstractNic;    };#endif

⌨️ 快捷键说明

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