HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulecrypton-socks-0.6.2Haskell2010

Network.Socks5.Lowlevel

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

Contents
  1. Low level types and functions
Synopsis
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

newtypenewtype SocksHelloResponse

Type representing initial messages sent by a server in response to Hello, with the server's chosen method of authentication.

Instances3Eq, Show, Serialize
datadata SocksRequest
Instances4Eq, Show, Serialize, 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).

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