C# Class HitProxy.Connection.ConnectionManager

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

Méthodes publiques

Свойство Type Description
releasedConnection System.Threading.AutoResetEvent

Méthodes publiques

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

public Cleanup ( ) : void
Résultat void

Connect() public méthode

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. ///
Résultat CachedConnection

ConnectionManager() public méthode

public ConnectionManager ( ) : System
Résultat System

Property Details

releasedConnection public_oe property

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