Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Net.Packet
Synopsis
- module Data.Array.Unboxed
- data Word8
- data InPacket
- len :: InPacket -> Int
- emptyInPack :: InPacket
- toInPack :: Chunk -> InPacket
- takeInPack :: Int -> InPacket -> InPacket
- dropInPack :: Int -> InPacket -> InPacket
- byteAt :: InPacket -> Int -> Word8
- wordAt :: InPacket -> Int -> Word16
- toChunk :: InPacket -> Chunk
- data OutPacket
- outLen :: OutPacket -> Int
- chunks :: OutPacket -> [Chunk]
- type Chunk = UArray Int Word8
- emptyOutPack :: OutPacket
- addChunk :: Chunk -> OutPacketS
- appendOutPack :: OutPacket -> OutPacket -> OutPacket
- splitOutPack :: Int -> OutPacket -> (OutPacket, OutPacket)
- outBytes :: OutPacket -> [Word8]
- loopback :: OutPacket -> InPacket
- loopbackout :: InPacket -> OutPacket
Documentation
module Data.Array.Unboxed
8-bit unsigned integer type
Instances
The buffers used to represent packet, when they are received over the network.
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.
loopbackout :: InPacket -> OutPacket Source #