4 Nov 2012 11:55
ANNOUNCE: connection
Vincent Hanquez <tab <at> snarc.org>
2012-11-04 10:55:32 GMT
2012-11-04 10:55:32 GMT
Hi Haskellers, I'm pleased to announce the release of connection. Connection is the pinnacle of most of my network related packages, and wrap together all the libraries needed to provide a easy and smooth experience to open client connection. It provides very simple access to SOCKS and TLS along with normal raw client socket. The goal is to hide most complicated settings either completely or re-expose them more simply, and provide safe defaults. repository: https://github.com/vincenthz/hs-connection hackage: http://hackage.haskell.org/package/connection Two simple examples (more can be find in the README on github): - opening a raw connection to www.example.com port 80: ctx <- initConnectionContext connectTo ctx $ ConnectionParams { connectionHostname = "www.example.com" , connectionPort = fromIntegral 80 , connectionUseSecure = Nothing , connectionUseSocks = Nothing } - opening a TLS connection to www.example.com port 443: ctx <- initConnectionContext connectTo ctx $ ConnectionParams { connectionHostname = "www.example.com"(Continue reading)
RSS Feed