network-socket-options: Type-safe, portable alternative to getSocketOption/setSocketOption
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.
Downloads
- network-socket-options-0.2.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.2.0.1 |
---|---|
Dependencies | base (>=4 && <5), network [details] |
License | BSD-3-Clause |
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 repo | head: git clone git://github.com/joeyadams/haskell-network-socket-options.git |
Uploaded | by JoeyAdams at 2012-09-26T03:05:35Z |
Distributions | |
Reverse Dependencies | 2 direct, 1 indirect [details] |
Downloads | 2909 total (5 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |