socks5-0.8.0.0: A SOCKS5 (RFC 1928) implementation
Safe HaskellNone
LanguageGHC2021

Network.SOCKS5.Internal

Synopsis

Documentation

data Method Source #

Instances

Instances details
Show Method Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary Method Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Method -> Put #

get :: Get Method #

putList :: [Method] -> Put #

Eq Method Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

newtype Hello Source #

Constructors

Hello 

Fields

Instances

Instances details
Show Hello Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

showsPrec :: Int -> Hello -> ShowS #

show :: Hello -> String #

showList :: [Hello] -> ShowS #

Binary Hello Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Hello -> Put #

get :: Get Hello #

putList :: [Hello] -> Put #

Eq Hello Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Hello -> Hello -> Bool #

(/=) :: Hello -> Hello -> Bool #

data Command Source #

Constructors

Connect 
Bind 
UDPAssociate 

Instances

Instances details
Show Command Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary Command Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Command -> Put #

get :: Get Command #

putList :: [Command] -> Put #

Eq Command Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

data Address Source #

Address type used for destination addresses in SOCKS5 protocol.

Instances

Instances details
Show Address Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary Address Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Address -> Put #

get :: Get Address #

putList :: [Address] -> Put #

Eq Address Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Address -> Address -> Bool #

(/=) :: Address -> Address -> Bool #

data Request Source #

Instances

Instances details
Show Request Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary Request Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Request -> Put #

get :: Get Request #

putList :: [Request] -> Put #

Eq Request Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Request -> Request -> Bool #

(/=) :: Request -> Request -> Bool #

data Rep Source #

Instances

Instances details
Show Rep Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

showsPrec :: Int -> Rep -> ShowS #

show :: Rep -> String #

showList :: [Rep] -> ShowS #

Binary Rep Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Rep -> Put #

get :: Get Rep #

putList :: [Rep] -> Put #

Eq Rep Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Rep -> Rep -> Bool #

(/=) :: Rep -> Rep -> Bool #

data Reply Source #

Constructors

Reply 

Instances

Instances details
Show Reply Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

showsPrec :: Int -> Reply -> ShowS #

show :: Reply -> String #

showList :: [Reply] -> ShowS #

Binary Reply Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Reply -> Put #

get :: Get Reply #

putList :: [Reply] -> Put #

Eq Reply Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Reply -> Reply -> Bool #

(/=) :: Reply -> Reply -> Bool #

data UDPRequest Source #

Constructors

UDPRequest 

Instances

Instances details
Show UDPRequest Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary UDPRequest Source # 
Instance details

Defined in Network.SOCKS5.Internal

Eq UDPRequest Source # 
Instance details

Defined in Network.SOCKS5.Internal

data Status Source #

Constructors

Success 
Failure 

Instances

Instances details
Show Status Source # 
Instance details

Defined in Network.SOCKS5.Internal

Binary Status Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

put :: Status -> Put #

get :: Get Status #

putList :: [Status] -> Put #

Eq Status Source # 
Instance details

Defined in Network.SOCKS5.Internal

Methods

(==) :: Status -> Status -> Bool #

(/=) :: Status -> Status -> Bool #

class Connection c where Source #

Methods

connRecv :: c -> IO ByteString Source #

connSend :: c -> ByteString -> IO () Source #

Instances

Instances details
Connection Socket Source # 
Instance details

Defined in Network.SOCKS5.Internal

Connection Context Source # 
Instance details

Defined in Network.SOCKS5.Internal

encodeAndSend :: (Binary a, Connection c, MonadIO m) => c -> a -> m () Source #