The network-socket-options package
The network package provides getSocketOption and setSocketOption functions. These work fine for socket options represented using the int type (namely, all boolean options, and a few quantity options). However, it doesn't work for, say, SO_LINGER, SO_RCVTIMEO, and SO_SNDTIMEO, as these use different, platform-specific representations.
This package implements the getters and setters as separate functions. At the moment, it only provides socket options that are available for both Unix and Windows.
This package also provides a workaround needed to time out network operations in Windows without leaking resources.
Properties
| Versions | 0.1, 0.2, 0.2.0.1 |
|---|---|
| Dependencies | base (4.*), network |
| License | BSD3 |
| Copyright | Copyright (c) Joseph Adams 2012 |
| Author | Joey Adams |
| Maintainer | joeyadams3.14159@gmail.com |
| Category | Network |
| Home page | https://github.com/joeyadams/haskell-network-socket-options |
| Source repository | git clone git://github.com/joeyadams/haskell-network-socket-options.git |
| Upload date | Wed Sep 26 03:05:35 UTC 2012 |
| Uploaded by | JoeyAdams |
| Built on | ghc-7.6 |
Modules
- Network
- Socket
Downloads
- network-socket-options-0.2.0.1.tar.gz (Cabal source package)
- package description (included in the package)