C# Class HitProxy.Connection.CachedConnection

Inheritance: IDisposable
Mostrar archivo Open project: hultqvist/HitProxy Class Usage Examples

Public Properties

Property Type Description
Stream Stream
remoteSocket System.Net.Sockets.Socket
served int
server CachedServer

Public Methods

Method Description
CachedConnection ( CachedServer server ) : System
Connect ( ) : void
Dispose ( ) : void
GetHashCode ( ) : int
Release ( ) : void

Make connection available to other requests

SetBusy ( ) : void

Indicates that this connections now is busy serving a request

ToString ( ) : string

Method Details

CachedConnection() public method

public CachedConnection ( CachedServer server ) : System
server CachedServer
return System

Connect() public method

public Connect ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

Release() public method

Make connection available to other requests
public Release ( ) : void
return void

SetBusy() public method

Indicates that this connections now is busy serving a request
public SetBusy ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

Stream public_oe property

Usually a NetworkStream but can be a SslStream when HTTP CONNECT is intercepted.
public Stream Stream
return Stream

remoteSocket public_oe property

public Socket,System.Net.Sockets remoteSocket
return System.Net.Sockets.Socket

served public_oe property

Statistics: Number of requests served using this connection
public int served
return int

server public_oe property

public CachedServer,HitProxy.Connection server
return CachedServer