moether.h
来自「MONA是为数不多的C++语言编写的一个很小的操作系统」· C头文件 代码 · 共 67 行
H
67 行
/*! \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 + =
减小字号Ctrl + -
显示快捷键?