📄 nic_device.cpp
字号:
#include "stdafx.h"
#include "NIC_Device.h"
NIC_Device::NIC_Device(CString SName, pcap_t* PHandle,
CString SDescription, CString SIP, byte BIP[4])
{
m_sName = SName;
m_pHandle = PHandle;
m_sDescription = SDescription;
m_sIP = SIP;
m_pNext = NULL;
for ( int i=0 ; i<4 ; i++ )
m_bIP[i] = BIP[i];
}
NIC_Device::~NIC_Device()
{
if ( m_pNext )
delete m_pNext;
m_pNext = NULL;
}
void NIC_Device::AddNext(NIC_Device *PNextNIC)
{
if ( m_pNext == NULL )
m_pNext = PNextNIC;
else
m_pNext->AddNext( PNextNIC );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -