[Haskell] ANNOUNCE: ioctl 0.0.1

Maciej Piechotka uzytkownik2 at gmail.com
Sat Feb 20 18:38:46 EST 2010


A package for type-safe I/O control. Currently only ioctl is supported.

Currently simply a extract from my tuntap fork

TODO:
- Return the integer as well as structure (will break the API)
- Port for Windows Network.Socket.IOCtl (as soon as I manage to setup
some sane environment on this platform)
- Wrapping around DeviceIoControl

Example (in hsc):
data NotRead = NotRead
instance NotRead Int where
	ioctlReq _ = #const FIONREAD

notRead s = ioctlsocket' s NotRead

Regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell/attachments/20100220/c5d7525b/attachment.bin


More information about the Haskell mailing list