socks

Socks proxy (version 5) implementation.

http://github.com/vincenthz/hs-socks

Version on this page:0.5.4
LTS Haskell 22.14:0.6.1
Stackage Nightly 2024-03-28:0.6.1
Latest on Hackage:0.6.1

See all snapshots socks appears in

BSD-3-Clause licensed and maintained by Vincent Hanquez
This version can be pinned in stack with:socks-0.5.4@sha256:05ec9fa7f8412cf6d8d9f602abcd0ec87a97f50941bef355fd2450329817a66f,1174

Module documentation for 0.5.4

Used by 1 package in nightly-2015-04-30(full list with versions):

Socks

Haskell library implementation of the SOCKS 5 protocol.

TODO

  • more socks authentification methods: only no authentification is supported for now.
  • support of socks’ bind for server to client connection (like FTP).
  • add socks4a and socks4 support.

Usage

See Example.hs for really simple and straighforward example. The main api is only 2 calls:

  • socksConnectAddr which connect to a SockAddr (SockAddrInet or SockAddrInet6). The name resolution is left on client side.
  • socksConnectName which connect to a fully qualified domain name “www.example.com”. The proxy server will do the name resolution.