C# Class HitProxy.Connection.ConnectionManager

Caches active connections and limits the number of simultaneous connections to each server
Mostra file Open project: hultqvist/HitProxy Class Usage Examples

Public Properties

Property Type Description
releasedConnection System.Threading.AutoResetEvent

Public Methods

Method Description
Cleanup ( ) : void
Connect ( DnsLookup dns, int port, bool forceNew, bool wait ) : CachedConnection

Get cached or create a new connection to specific ip-addresses.

ConnectionManager ( ) : System

Method Details

Cleanup() public method

public Cleanup ( ) : void
return void

Connect() public method

Get cached or create a new connection to specific ip-addresses.
public Connect ( DnsLookup dns, int port, bool forceNew, bool wait ) : CachedConnection
dns DnsLookup /// Dns. ///
port int /// Port. ///
forceNew bool /// Don't reuse, always start a new connection ///
wait bool /// Wait until there is a slot free, otherwise it will return null. ///
return CachedConnection

ConnectionManager() public method

public ConnectionManager ( ) : System
return System

Property Details

releasedConnection public_oe property

This event is triggered to let pending connections start.
public AutoResetEvent,System.Threading releasedConnection
return System.Threading.AutoResetEvent