HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesocks-0.6.1Haskell2010

Network.Socks5

This is an implementation of SOCKS5 as defined in RFC 1928

In Wikipedia's words:

SOCKet Secure (SOCKS) is an Internet protocol that routes network packets between a client and server through a proxy server. SOCKS5 additionally provides authentication so only authorized users may access a server. Practically, a SOCKS server will proxy TCP connections to an arbitrary IP address as well as providing a means for UDP packets to be forwarded.

BIND and UDP ASSOCIATE messages are not implemented. However main usage of SOCKS is covered in this implementation.

Contents
  1. Types
  2. Configuration
  3. Methods
  4. Variants
Synopsis
  • Packagesocks-0.6.1
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSocks5.hs

Types

datadata SocksError
Instances6Enum, Eq, Data, Ord, Show, Exception

Configuration

Methods

Variants

connect a new socket to the socks server, and connect the stream to a FQDN resolved on the server side.

The socket needs to *not* be already connected.

The destination need to be an ASCII string, otherwise unexpected behavior will ensue. For unicode destination, punycode encoding should be used.