
26 Dec
2005
26 Dec
'05
11:10 p.m.
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