xarxa

Crates

git

Versions

default

Flavors

Skip to main content

Module driver_impls

Module driver_impls 

Source
Expand description

Driver implementations for the host OS.

These are Driver implementations for Linux and other unix-like hosts, for running the stack on a PC:

  • TunTapDriver, a virtual TUN/TAP interface;
  • RawSocketDriver, a packet socket bound to an existing interface (Ethernet or IEEE 802.15.4).

Both need the std feature.

Structs§

RawSocketDriver
A driver over a packet socket bound to a host interface, sending and receiving whole frames.
TunTapDriver
A driver for a virtual TUN (IP) or TAP (Ethernet) interface.

Functions§

wait
Wait until given file descriptor becomes readable, but no longer than given timeout.