C# Class System.Net.HttpConnection

Mostra file Open project: runefs/Marvin Class Usage Examples

Public Methods

Method Description
BeginReadRequest ( ) : void
Close ( ) : void
GetRequestStream ( bool chunked, long contentlength ) : System.Net.RequestStream
GetResponseStream ( ) : System.Net.ResponseStream
HttpConnection ( Socket sock, EndPointListener epl, bool secure, X509Certificate2 cert, AsymmetricAlgorithm key ) : System.IO
SendError ( ) : void
SendError ( string msg, int status ) : void

Private Methods

Method Description
Close ( bool force_close ) : void
CloseSocket ( ) : void
Init ( ) : void
OnPVKSelection ( X509Certificate certificate, string targetHost ) : AsymmetricAlgorithm
OnRead ( IAsyncResult ares ) : void
ProcessInput ( MemoryStream ms ) : bool
ReadLine ( byte buffer, int offset, int len, int &used ) : string
Unbind ( ) : void

Method Details

BeginReadRequest() public method

public BeginReadRequest ( ) : void
return void

Close() public method

public Close ( ) : void
return void

GetRequestStream() public method

public GetRequestStream ( bool chunked, long contentlength ) : System.Net.RequestStream
chunked bool
contentlength long
return System.Net.RequestStream

GetResponseStream() public method

public GetResponseStream ( ) : System.Net.ResponseStream
return System.Net.ResponseStream

HttpConnection() public method

public HttpConnection ( Socket sock, EndPointListener epl, bool secure, X509Certificate2 cert, AsymmetricAlgorithm key ) : System.IO
sock Socket
epl EndPointListener
secure bool
cert System.Security.Cryptography.X509Certificates.X509Certificate2
key System.Security.Cryptography.AsymmetricAlgorithm
return System.IO

SendError() public method

public SendError ( ) : void
return void

SendError() public method

public SendError ( string msg, int status ) : void
msg string
status int
return void