1 #ifndef PCAPPP_PCAP_REMOTE_DEVICE 2 #define PCAPPP_PCAP_REMOTE_DEVICE 27 struct PcapRemoteAuthentication
35 PcapRemoteAuthentication(
const std::string username,
const std::string password) { userName = username; this->password = password; }
41 PcapRemoteAuthentication(
const PcapRemoteAuthentication& other) { userName = other.userName; password = other.password; }
59 pcap_rmtauth getPcapRmAuth()
const;
79 class PcapRemoteDevice :
public PcapLiveDevice
81 friend class PcapRemoteDeviceList;
83 IPAddress m_RemoteMachineIpAddress;
84 uint16_t m_RemoteMachinePort;
85 PcapRemoteAuthentication* m_RemoteAuthentication;
88 PcapRemoteDevice(pcap_if_t* iface, PcapRemoteAuthentication* remoteAuthentication,
const IPAddress& remoteMachineIP, uint16_t remoteMachinePort);
91 PcapRemoteDevice(
const PcapRemoteDevice& other );
93 PcapRemoteDevice& operator=(
const PcapRemoteDevice& other);
95 static void* remoteDeviceCaptureThreadMain(
void *ptr);
98 ThreadStart getCaptureThreadStart();
101 virtual ~PcapRemoteDevice() {}
106 IPAddress getRemoteMachineIpAddress()
const {
return m_RemoteMachineIpAddress; }
111 uint16_t getRemoteMachinePort()
const {
return m_RemoteMachinePort; }
115 virtual LiveDeviceType getDeviceType()
const {
return RemoteDevice; }
121 virtual uint32_t getMtu()
const;
127 virtual MacAddress getMacAddress()
const;
140 virtual void getStatistics(IPcapDevice::PcapStats& stats)
const;
The main namespace for the PcapPlusPlus lib.