C# Class socks5.Socks5Client.Socks5Client

ファイルを表示 Open project: ThrDev/Socks5 Class Usage Examples

Public Properties

Property Type Description
Client socks5.TCP.Client
enc Encryption.SocksEncryption
reqPass bool

Public Methods

Method Description
Connect ( ) : bool
ConnectAsync ( ) : void
Receive ( byte buffer, int offset, int count ) : int
ReceiveAsync ( ) : void
Send ( byte buffer ) : bool
Send ( byte buffer, int offset, int length ) : bool
Socks5Client ( IPAddress ip, int port, string dest, int destport, string username = null, string password = null ) : System
Socks5Client ( string ipOrDomain, int port, string dest, int destport, string username = null, string password = null ) : System

Private Methods

Method Description
Client_onClientDisconnected ( object sender, ClientEventArgs e ) : void
Client_onDataReceived ( object sender, DataEventArgs e ) : void
DoSocks ( IPAddress ip, int port, string dest, int destport, string username = null, string password = null ) : void
Socks5Client ( ) : System
onConnected ( IAsyncResult res ) : void

Method Details

Connect() public method

public Connect ( ) : bool
return bool

ConnectAsync() public method

public ConnectAsync ( ) : void
return void

Receive() public method

public Receive ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

ReceiveAsync() public method

public ReceiveAsync ( ) : void
return void

Send() public method

public Send ( byte buffer ) : bool
buffer byte
return bool

Send() public method

public Send ( byte buffer, int offset, int length ) : bool
buffer byte
offset int
length int
return bool

Socks5Client() public method

public Socks5Client ( IPAddress ip, int port, string dest, int destport, string username = null, string password = null ) : System
ip System.Net.IPAddress
port int
dest string
destport int
username string
password string
return System

Socks5Client() public method

public Socks5Client ( string ipOrDomain, int port, string dest, int destport, string username = null, string password = null ) : System
ipOrDomain string
port int
dest string
destport int
username string
password string
return System

Property Details

Client public_oe property

public Client,socks5.TCP Client
return socks5.TCP.Client

enc public_oe property

public Encryption.SocksEncryption enc
return Encryption.SocksEncryption

reqPass public_oe property

public bool reqPass
return bool