C# Class Shadowsocks.Proxy.HttpProxy

Inheritance: IProxy
Datei anzeigen Open project: shadowsocks/shadowsocks-windows Class Usage Examples

Public Methods

Method Description
BeginConnectDest ( EndPoint destEndPoint, AsyncCallback callback, object state ) : void
BeginConnectProxy ( EndPoint remoteEP, AsyncCallback callback, object state ) : void
BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : void
BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : void
Close ( ) : void
EndConnectDest ( IAsyncResult asyncResult ) : void
EndConnectProxy ( IAsyncResult asyncResult ) : void
EndReceive ( IAsyncResult asyncResult ) : int
EndSend ( IAsyncResult asyncResult ) : int
Shutdown ( SocketShutdown how ) : void

Private Methods

Method Description
HttpRequestSendCallback ( IAsyncResult ar ) : void
OnException ( Exception ex, object state ) : void
OnFinish ( byte lastBytes, int index, int length, object state ) : void
OnLineRead ( string line, object state ) : bool

Method Details

BeginConnectDest() public method

public BeginConnectDest ( EndPoint destEndPoint, AsyncCallback callback, object state ) : void
destEndPoint System.Net.EndPoint
callback AsyncCallback
state object
return void

BeginConnectProxy() public method

public BeginConnectProxy ( EndPoint remoteEP, AsyncCallback callback, object state ) : void
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
return void

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : void
buffer byte
offset int
size int
socketFlags SocketFlags
callback AsyncCallback
state object
return void

BeginSend() public method

public BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : void
buffer byte
offset int
size int
socketFlags SocketFlags
callback AsyncCallback
state object
return void

Close() public method

public Close ( ) : void
return void

EndConnectDest() public method

public EndConnectDest ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndConnectProxy() public method

public EndConnectProxy ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndSend() public method

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

Shutdown() public method

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
return void