C# Class Shadowsocks.Proxy.HttpProxy

Inheritance: IProxy
Afficher le fichier Open project: shadowsocks/shadowsocks-windows Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

BeginConnectProxy() public méthode

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

BeginReceive() public méthode

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
Résultat void

BeginSend() public méthode

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
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

EndConnectDest() public méthode

public EndConnectDest ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndConnectProxy() public méthode

public EndConnectProxy ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndSend() public méthode

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

Shutdown() public méthode

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
Résultat void