The network-socket-options package

[ Tags: bsd3, library, network ] [ Propose Tags ]

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.


Versions 0.1, 0.2,
Dependencies base (==4.*), network [details]
License BSD3
Copyright Copyright (c) Joseph Adams 2012
Author Joey Adams
Category Network
Home page
Source repo head: git clone git://
Uploaded Wed Sep 26 03:05:35 UTC 2012 by JoeyAdams
Distributions NixOS:
Downloads 1415 total (9 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees