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

Safe HaskellSafe-Inferred




data InPacket Source

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

(#!) :: (Monad m, Functor m) => m b -> m a -> m bSource

Perform two monadic computation and return the result from the second one

(#) :: Functor f => (a -> b) -> f a -> f bSource

Apply a pure function to the result of a monadic computation

(<#) :: Monad m => m (a -> b) -> m a -> m bSource

Apply a function returned by a monadic computation to an argument returned by a monadic computation

bytes :: (Eq a, Num a) => a -> PacketParser [Word8]Source

check :: Monad m => Bool -> m ()Source

lift :: Monad m => Maybe a -> m aSource

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.