ioctl-0.0.1: Type-safe I/O control package

Portabilityportable
Stabilitynone

Network.Socket.IOCtl

Description

The module wrapps the ioctl system call for sockets.

Synopsis

Documentation

class Storable d => IOControl req d | req -> d whereSource

Combines the request with data.

Methods

ioctlReqSource

Arguments

:: req

The request. Should be lazy in argument.

-> CInt

The request code.

Converts request to integer

ioctlsocketSource

Arguments

:: IOControl req d 
=> Socket

The socket

-> req

The request

-> d

The data

-> IO d

The data after the call

Calls a ioctl reading the structure after the call

ioctlsocket_Source

Arguments

:: IOControl req d 
=> Socket

The socket

-> req

The request

-> d

The data

-> IO () 

Call a ioctl ignoring the result

ioctlsocket'Source

Arguments

:: IOControl req d 
=> Socket

The socket

-> req

The request

-> IO d

The data

Call a ioctl with uninitialized data