C# Class Shadowsocks.Controller.TCPHandler

Mostra file Open project: shadowsocks/shadowsocks-windows Class Usage Examples

Public Properties

Property Type Description
BufferSize int
RecvReserveSize int
RecvSize int
lastActivity System.DateTime

Public Methods

Method Description
Close ( ) : void
CreateRemote ( ) : void
Start ( byte firstPacket, int length ) : void
TCPHandler ( ShadowsocksController controller, Configuration config, TCPRelay tcprelay, Socket socket ) : System

Private Methods

Method Description
CheckClose ( ) : void
ConnectCallback ( IAsyncResult ar ) : void
HandleUDPAssociate ( ) : void
HandshakeReceive ( ) : void
HandshakeSendCallback ( IAsyncResult ar ) : void
OnAddressFullyRead ( IAsyncResult ar ) : void
PipeConnectionReceiveCallback ( IAsyncResult ar ) : void
PipeConnectionSendCallback ( IAsyncResult ar ) : void
PipeRemoteReceiveCallback ( IAsyncResult ar ) : void
PipeRemoteSendCallback ( IAsyncResult ar ) : void
ProxyConnectCallback ( IAsyncResult ar ) : void
ReadAddress ( System.Action onSuccess ) : void
ReadAddress ( int bytesRemain, System.Action onSuccess ) : void
ReadAll ( IAsyncResult ar ) : void
ResponseCallback ( IAsyncResult ar ) : void
SendToServer ( int length, AsyncSession session ) : void
StartConnect ( ) : void
StartPipe ( AsyncSession session ) : void
TryReadAvailableData ( ) : void
destConnectTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
handshakeReceive2Callback ( IAsyncResult ar ) : void
proxyConnectTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

Close() public method

public Close ( ) : void
return void

CreateRemote() public method

public CreateRemote ( ) : void
return void

Start() public method

public Start ( byte firstPacket, int length ) : void
firstPacket byte
length int
return void

TCPHandler() public method

public TCPHandler ( ShadowsocksController controller, Configuration config, TCPRelay tcprelay, Socket socket ) : System
controller ShadowsocksController
config Shadowsocks.Model.Configuration
tcprelay TCPRelay
socket Socket
return System

Property Details

BufferSize public_oe static_oe property

public static int BufferSize
return int

RecvReserveSize public_oe static_oe property

public static int RecvReserveSize
return int

RecvSize public_oe static_oe property

public static int RecvSize
return int

lastActivity public_oe property

public DateTime,System lastActivity
return System.DateTime