C# Class socks5.TCP.Client

Datei anzeigen Open project: ThrDev/Socks5 Class Usage Examples

Public Properties

Property Type Description
Receiving bool

Public Methods

Method Description
Client ( Socket sock, int PacketSize ) : System
Disconnect ( ) : void
Dispose ( ) : void
Receive ( byte data, int offset, int count ) : int
ReceiveAsync ( int buffersize = -1 ) : void
Send ( byte buff ) : bool
Send ( byte buff, int offset, int count ) : bool
SendAsync ( byte buff, int offset, int count ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
DataReceived ( IAsyncResult res ) : void
DataSent ( IAsyncResult res ) : void

Method Details

Client() public method

public Client ( Socket sock, int PacketSize ) : System
sock System.Net.Sockets.Socket
PacketSize int
return System

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Receive() public method

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

ReceiveAsync() public method

public ReceiveAsync ( int buffersize = -1 ) : void
buffersize int
return void

Send() public method

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

Send() public method

public Send ( byte buff, int offset, int count ) : bool
buff byte
offset int
count int
return bool

SendAsync() public method

public SendAsync ( byte buff, int offset, int count ) : void
buff byte
offset int
count int
return void

Property Details

Receiving public_oe property

public bool Receiving
return bool