network-house-0.1.0.0: data and parsers for Ethernet, TCP, UDP, IPv4, IPv6, ICMP, DHCP, TFTP

Safe HaskellSafe-Inferred

Net.Packet

Synopsis

Documentation

data InPacket Source

The buffers used to represent packet, when they are received over the network.

byteAt :: InPacket -> Int -> Word8Source

Get a byte at a certain offset.

wordAt :: InPacket -> Int -> Word16Source

Get a word from a certain offset (big endian).

data OutPacket Source

The buffers for packets, that are to be sent over the network. Each array contains a header of a layer in the network protocol stack.

addChunk :: Chunk -> OutPacketSSource