C# Класс HitProxy.Connection.ConnectionManager

Caches active connections and limits the number of simultaneous connections to each server
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
releasedConnection System.Threading.AutoResetEvent

Открытые методы

Метод Описание
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

Описание методов

Cleanup() публичный Метод

public Cleanup ( ) : void
Результат void

Connect() публичный Метод

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. ///
Результат CachedConnection

ConnectionManager() публичный Метод

public ConnectionManager ( ) : System
Результат System

Описание свойств

releasedConnection публичное свойство

This event is triggered to let pending connections start.
public AutoResetEvent,System.Threading releasedConnection
Результат System.Threading.AutoResetEvent