Crate pnet_transport

source ·
Expand description

Support for implementing transport layer protocols

The transport module provides the ability to send and receive packets at the transport layer using IPv4 or IPv6. It also enables layer 3 networking for specific transport protocols, using IPv4 only.

Note that this is limited by operating system support - for example, on OS X and FreeBSD, it is impossible to implement protocols which are already implemented in the kernel such as TCP and UDP.

Macros§

Structs§

Enums§

Functions§

  • Return a packet iterator with packets of type IcmpPacket for some transport receiver.
  • Return a packet iterator with packets of type Icmpv6Packet for some transport receiver.
  • Return a packet iterator with packets of type Ipv4Packet for some transport receiver.
  • Return a packet iterator with packets of type TcpPacket for some transport receiver.
  • Create a new (TransportSender, TransportReceiver) pair.
  • Create a new (TransportSender, TransportReceiver) pair using the additional options specified.
  • Return a packet iterator with packets of type UdpPacket for some transport receiver.