ANNOUNCE: ioctl 0.0.1

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

Did you managed to make it available for Windows?
2010-02-21 0:38 GMT+01:00 Maciej Piechotka
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
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Alberto.
participants (2)
-
Alberto G. Corona
-
Maciej Piechotka