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

Safe HaskellSafe-Inferred
LanguageHaskell98

Net.PacketParsing

Synopsis

Documentation

data InPacket Source

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

(#!) :: (Functor m, Monad m) => m b -> m a -> m b infixl 1 Source

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

(#) :: Functor f => (a -> b) -> f a -> f b infixl 1 Source

Apply a pure function to the result of a monadic computation

(<#) :: Monad m => m (a -> b) -> m a -> m b infixl 1 Source

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

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

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

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

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.