C# 클래스 HitProxy.Connection.CachedServer

Holds connection cache for a server on one IP address
파일 보기 프로젝트 열기: hultqvist/HitProxy 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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