Classe TSocksBlockSocket
Unit
blcksock
Declaração
type TSocksBlockSocket = class(TBlockSocket)
Descrição
Support for SOCKS4 and SOCKS5 proxy
Layer with definition all necessary properties and functions for implementation SOCKS proxy client. Do not use this class directly.
Hierarquia
Visão Geral
Campos
Métodos
Propriedades
Descrição
Campos
 |
FSocksIP: string; |
|
 |
FSocksPort: string; |
|
 |
FSocksTimeout: integer; |
|
 |
FSocksUsername: string; |
|
 |
FSocksPassword: string; |
|
 |
FUsingSocks: Boolean; |
|
 |
FSocksResolver: Boolean; |
|
 |
FSocksLastError: integer; |
|
 |
FSocksResponseIP: string; |
|
 |
FSocksResponsePort: string; |
|
 |
FSocksLocalIP: string; |
|
 |
FSocksLocalPort: string; |
|
 |
FSocksRemoteIP: string; |
|
 |
FSocksRemotePort: string; |
|
 |
FBypassFlag: Boolean; |
|
Métodos
 |
function SocksCode(IP, Port: string): Ansistring; |
|
 |
function SocksDecode(Value: Ansistring): integer; |
|
 |
constructor Create; |
|
 |
function SocksOpen: Boolean; |
Open connection to SOCKS proxy and if SocksUsername is set, do authorisation to proxy. This is needed only in special cases! (it is called internally!)
|
 |
function SocksRequest(Cmd: Byte; const IP, Port: string): Boolean; |
Send specified request to SOCKS proxy. This is needed only in special cases! (it is called internally!)
|
 |
function SocksResponse: Boolean; |
Receive response to previosly sended request. This is needed only in special cases! (it is called internally!)
|
Propriedades
 |
property UsingSocks: Boolean read FUsingSocks; |
Is True when class is using SOCKS proxy.
|
 |
property SocksLastError: integer read FSocksLastError; |
If SOCKS proxy failed, here is error code returned from SOCKS proxy.
|
 |
property SocksIP: string read FSocksIP write FSocksIP; |
Address of SOCKS server. If value is empty string, SOCKS support is disabled. Assingning any value to this property enable SOCKS mode. Warning: You cannot combine this mode with HTTP-tunneling mode!
|
 |
property SocksPort: string read FSocksPort write FSocksPort; |
Port of SOCKS server. Default value is '1080'.
|
 |
property SocksTimeout: integer read FSocksTimeout write FSocksTimeout; |
Specify timeout for communicatin with SOCKS server. Default is one minute.
|
 |
property SocksResolver: Boolean read FSocksResolver write FSocksResolver; |
If True , all symbolic names of target hosts is not translated to IP's locally, but resolving is by SOCKS proxy. Default is True .
|
 |
property SocksType: TSocksType read FSocksType write FSocksType; |
Specify SOCKS type. By default is used SOCKS5, but you can use SOCKS4 too. When you select SOCKS4, then if SOCKSResolver is enabled, then is used SOCKS4a. Othervise is used pure SOCKS4.
|
Gerado por PasDoc 0.16.0.