#include <windows_hal.hpp>
|
class | WindowsPCAPNetworkInterfaceFactory |
|
WindowsPCAPNetworkInterface implements an interface to the network adapter through calls to the publicly available libraries known as PCap.
virtual WindowsPCAPNetworkInterface::~WindowsPCAPNetworkInterface |
( |
| ) |
|
|
inlinevirtual |
Destroys the network interface
WindowsPCAPNetworkInterface::WindowsPCAPNetworkInterface |
( |
| ) |
|
|
inlineprotected |
virtual void WindowsPCAPNetworkInterface::getLinkLayerAddress |
( |
LinkLayerAddress * |
addr | ) |
|
|
inlinevirtual |
Gets the link layer address (MAC) of the network adapter.
- Parameters
-
addr | [out] Link layer address |
- Returns
- void
Implements OSNetworkInterface.
virtual unsigned WindowsPCAPNetworkInterface::getPayloadOffset |
( |
| ) |
|
|
inlinevirtual |
Receives a packet from a remote address.
- Parameters
-
addr | [out] Remote link layer address |
payload | [out] Data buffer |
length | [out] Length of received data |
- Returns
- net_result structure
Implements OSNetworkInterface.
virtual net_result WindowsPCAPNetworkInterface::send |
( |
LinkLayerAddress * |
addr, |
|
|
uint8_t * |
payload, |
|
|
size_t |
length, |
|
|
bool |
timestamp |
|
) |
| |
|
inlinevirtual |
Sends a packet to a remote address.
- Parameters
-
addr | [in] Destination link Layer address |
payload | [in] Data buffer |
length | Size of buffer |
timestamp | TRUE: Use timestamp, FALSE otherwise |
- Returns
- net_result structure
Implements OSNetworkInterface.
The documentation for this class was generated from the following file: