socks-0.5.2: Socks proxy (version 5) implementation.

Safe HaskellNone

Network.Socks5.Lowlevel

Contents

Synopsis

Documentation

lowlevel types

data SocksHello Source

Initial message sent by client with the list of authentification methods supported

Constructors

SocksHello 

data SocksHelloResponse Source

Initial message send by server in return from Hello, with the server chosen method of authentication

connectIPV4 :: Socket -> HostAddress -> PortNumber -> IO (HostAddress, PortNumber)Source

connectIPV6 :: Socket -> HostAddress6 -> PortNumber -> IO (HostAddress6, PortNumber)Source

connectDomainName :: Socket -> String -> PortNumber -> IO (SocksHostAddress, PortNumber)Source

lowlevel interface

rpc :: Command a => Socket -> a -> IO (Either SocksError (SocksHostAddress, PortNumber))Source

rpc_ :: Command a => Socket -> a -> IO (SocksHostAddress, PortNumber)Source

sendSerialized :: Serialize a => Socket -> a -> IO ()Source

waitSerialized :: Serialize a => Socket -> IO aSource