C# 클래스 Org.Mentalis.Proxy.Socks.SocksClient

Relays data between a remote host and a local client, using the SOCKS protocols.
This class implements the SOCKS4, SOCKS4a and SOCKS5 protocols. If the MustAuthenticate property is set, only SOCKS5 connections are allowed and the AuthList parameter of the constructor should not be null.
상속: Org.Mentalis.Proxy.Client
파일 보기 프로젝트 열기: paratechnical/Seringa 1 사용 예제들

Private Properties

프로퍼티 타입 설명
OnEndSocksProtocol void
OnStartSocksProtocol void

공개 메소드들

메소드 설명
SocksClient ( Socket ClientSocket, DestroyDelegate Destroyer, Org.Mentalis.Proxy.Socks.Authentication.AuthenticationList AuthList ) : System

Initializes a new instance of the SocksClient class.

If the AuthList is non-null, every client has to authenticate before he can use this proxy server to relay data. If it is null, the clients don't have to authenticate.

StartHandshake ( ) : void

Starts communication with the client.

ToString ( ) : string

Returns text information about this SocksClient object.

비공개 메소드들

메소드 설명
OnEndSocksProtocol ( bool Success, Socket Remote ) : void

Called when the SOCKS protocol has ended. We can no start relaying data, if the SOCKS authentication was successful.

OnStartSocksProtocol ( IAsyncResult ar ) : void

Called when we have received some data from the client.

메소드 상세

SocksClient() 공개 메소드

Initializes a new instance of the SocksClient class.
If the AuthList is non-null, every client has to authenticate before he can use this proxy server to relay data. If it is null, the clients don't have to authenticate.
public SocksClient ( Socket ClientSocket, DestroyDelegate Destroyer, Org.Mentalis.Proxy.Socks.Authentication.AuthenticationList AuthList ) : System
ClientSocket Socket The Socket connection between this proxy server and the local client.
Destroyer DestroyDelegate The method to be called when this SocksClient object disconnects from the local client and the remote server.
AuthList Org.Mentalis.Proxy.Socks.Authentication.AuthenticationList The list with valid username/password combinations.
리턴 System

StartHandshake() 공개 메소드

Starts communication with the client.
public StartHandshake ( ) : void
리턴 void

ToString() 공개 메소드

Returns text information about this SocksClient object.
public ToString ( ) : string
리턴 string