HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulecrypton-socks-0.6.2Haskell2010

Network.Socks5.Lowlevel

Low level types and functions for interacting with a SOCKS server.

  • 5 types
  • 1 class
  • 9 values
valuesocksListen
  1. :: Socket

    The socket to use.

  2. -> IO SocksRequest
#

For the specified socket, wait for a SOCKS Hello, send a SOCKS Hello response (specifying no authentification method), and wait for a SOCKS request.

Low level types and functions

14 declarations
datadata SocksRequest
#
Instances4Eq, Show, Serialize, Command
newtypenewtype Connect
#

Type representing connect commands.

Constructors

Instances4Eq, Ord, Show, Command
  • Eq ConnectDefined in crypton-socks-0.6.2 · Network.Socks5.Command
  • Ord ConnectDefined in crypton-socks-0.6.2 · Network.Socks5.Command
  • Show ConnectDefined in crypton-socks-0.6.2 · Network.Socks5.Command
  • Command ConnectDefined in crypton-socks-0.6.2 · Network.Socks5.Command
valueconnectDomainName
  1. :: Socket

    The socket to use.

  2. -> String

    Destination FQDN. Should comprise only ASCII characters, otherwise unexpected behaviour will ensure. For FQDN including other Unicode code points, Punycode encoding should be used.

  3. -> PortNumber

    The port number to use.

  4. -> IO (SocksHostAddress, PortNumber)
#

Connect using a fully-qualified domain name (FQDN).