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

Holds connection cache for a server on one IP address
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
endpoint System.Net.IPEndPoint
manager ConnectionManager

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

Метод Описание
CachedServer ( IPEndPoint endpoint, ConnectionManager manager ) : System
Cleanup ( ) : void
GetActiveConnection ( ) : CachedConnection

If available will return an unused connection that already is connected. Return null otherwise.

GetNewConnection ( ) : CachedConnection

Creates and return a new connection. If the maximum number of connections to that server is reached, it will return null.

GetUnlimitedNewConnection ( ) : CachedConnection
Remove ( CachedConnection connection ) : void

Remove a connection from the ServerCache This will trigger an event allowing pending connections to start.

ToString ( ) : string

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

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

public CachedServer ( IPEndPoint endpoint, ConnectionManager manager ) : System
endpoint System.Net.IPEndPoint
manager ConnectionManager
Результат System

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

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

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

If available will return an unused connection that already is connected. Return null otherwise.
public GetActiveConnection ( ) : CachedConnection
Результат CachedConnection

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

Creates and return a new connection. If the maximum number of connections to that server is reached, it will return null.
public GetNewConnection ( ) : CachedConnection
Результат CachedConnection

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

public GetUnlimitedNewConnection ( ) : CachedConnection
Результат CachedConnection

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

Remove a connection from the ServerCache This will trigger an event allowing pending connections to start.
public Remove ( CachedConnection connection ) : void
connection CachedConnection /// The connection to remove ///
Результат void

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

public ToString ( ) : string
Результат string

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

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

public IPEndPoint,System.Net endpoint
Результат System.Net.IPEndPoint

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

public ConnectionManager,HitProxy.Connection manager
Результат ConnectionManager