[Haskell-cafe] binary IO
Pupeno
pupeno at pupeno.com
Mon Dec 26 23:10:24 EST 2005
It seems I have found a hole in Haskell... :(
Before I start to develop a library with functions such us those on
http://haskell.org/hawiki/BinaryIo (hGetWord8, hGetWord16le, hGetWord16be,
etc), is there some reliable library that can help me ?
I basically need a set of functions to read binary data out of a Handle (a
higher lever of hGetBuf and hPutBuf). What I am doing is implementing a DNS
server, so, my typical need is:
First two bytes are an integer.
The next bit is a boolean.
So are the following three bits.
Then I have 4 bits which is also an integer.
Etc.
Any help is greatly appreciated.
Thank you.
--
Pupeno <pupeno at pupeno.com> (http://pupeno.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20051227/08f14e08/attachment.bin
More information about the Haskell-Cafe
mailing list