Class TSocksBlockSocket

DescriptionHierarchyFieldsMethodsProperties

Unit

blcksock

Declaration

type TSocksBlockSocket = class(TBlockSocket)

Description

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.

Hierarchy

TSocksBlockSocket > TBlockSocket > TObject

Methods

Overview

Public constructor Create;
Public function SocksOpen: Boolean;
Public function SocksRequest(Cmd: Byte; const IP, Port: string): Boolean;
Public function SocksResponse: Boolean;

Description

Public constructor Create;

 

Public 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!)

Public 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!)

Public function SocksResponse: Boolean;

Receive response to previosly sended request. This is needed only in special cases! (it is called internally!)

Properties

Overview

Published property SocksIP: string;
Public property SocksLastError: integer;
Published property SocksPassword: string;
Published property SocksPort: string;
Published property SocksResolver: Boolean;
Published property SocksTimeout: integer;
Published property SocksType: TSocksType;
Published property SocksUsername: string;
Public property UsingSocks: Boolean;

Description

Published property SocksIP: string;

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!

Public property SocksLastError: integer;

If SOCKS proxy failed, here is error code returned from SOCKS proxy.

Published property SocksPassword: string;

If you need authorisation on SOCKS server, set password here.

Published property SocksPort: string;

Port of SOCKS server. Default value is '1080'.

Published property SocksResolver: Boolean;

If True, all symbolic names of target hosts is not translated to IP's locally, but resolving is by SOCKS proxy. Default is True.

Published property SocksTimeout: integer;

Specify timeout for communicatin with SOCKS server. Default is one minute.

Published property SocksType: TSocksType;

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.

Published property SocksUsername: string;

If you need authorisation on SOCKS server, set username here.

Public property UsingSocks: Boolean;

Is True when class is using SOCKS proxy.


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:17