gPTP Documentation
|
#include <avbts_osnet.hpp>
Public Member Functions | |
virtual net_result | send (LinkLayerAddress *addr, uint8_t *payload, size_t length, bool timestamp)=0 |
Sends a packet to a remote address. More... | |
virtual net_result | nrecv (LinkLayerAddress *addr, uint8_t *payload, size_t &length)=0 |
Receives data. More... | |
virtual void | getLinkLayerAddress (LinkLayerAddress *addr)=0 |
Get Link Layer address (mac address) More... | |
virtual unsigned | getPayloadOffset ()=0 |
Provides generic method for getting the payload offset. | |
virtual | ~OSNetworkInterface ()=0 |
Provides a generic network interface
|
inlinepure virtual |
Native support for polimorphic destruction
|
pure virtual |
Get Link Layer address (mac address)
addr | [out] Link Layer address |
Implemented in LinuxNetworkInterface, and WindowsPCAPNetworkInterface.
|
pure virtual |
Receives data.
addr | [out] Destination Mac Address |
payload | [out] Payload received |
length | [out] Received length |
Implemented in LinuxNetworkInterface, and WindowsPCAPNetworkInterface.
|
pure virtual |
Sends a packet to a remote address.
addr | [in] Remote link layer address |
payload | [in] Data buffer |
length | Size of data buffer |
timestamp | TRUE if to use the event socket with the PTP multicast address. FALSE if to use a general socket. |
Implemented in LinuxNetworkInterface, and WindowsPCAPNetworkInterface.