C# 클래스 Tempest.Providers.Network.NetworkConnectionProvider

High performance socket based IConnectionProvider.

Potential memory usage is dependent on a number of parameters: Each connection maintains a receive buffer with a size potential of NetworkConnection.MaxMessageSize. MaxConnections (set from constructor) determines the max number of connections on the individual NetworkConnectionProvider. NetworkConnection.SendBufferLimit determines how many send buffers (globally) can be created (both clients and servers both), with each having a size potential of NetworkConnection.MaxMessageSize.

상속: IConnectionProvider
파일 보기 프로젝트 열기: ermau/Tempest 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
NetworkConnectionProvider ( IEnumerable protocols, Target target, int maxConnections, IEnumerable enabledHashAlgs = null ) : System

Initializes a new instance of the NetworkConnectionProvider class.

NetworkConnectionProvider ( IEnumerable protocols, Target target, int maxConnections, RSAAsymmetricKey authKey, IEnumerable enabledHashAlgorithms = null ) : System
NetworkConnectionProvider ( Protocol protocol, Target target, int maxConnections ) : System

Initializes a new instance of the NetworkConnectionProvider class.

Start ( MessageTypes types ) : void
Stop ( ) : void

비공개 메소드들

메소드 설명
Accept ( object sender, SocketAsyncEventArgs e ) : void
BeginAccepting ( SocketAsyncEventArgs e ) : void
Connect ( NetworkServerConnection connection ) : void
Disconnect ( NetworkServerConnection connection ) : void
Dispose ( bool disposing ) : void
GetConnectionId ( ) : int
OnConnectionMade ( ConnectionMadeEventArgs e ) : void

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

NetworkConnectionProvider() 공개 메소드

Initializes a new instance of the NetworkConnectionProvider class.
or is null. is <= 0
public NetworkConnectionProvider ( IEnumerable protocols, Target target, int maxConnections, IEnumerable enabledHashAlgs = null ) : System
protocols IEnumerable The protocols to accept.
target Target The target to listen to.
maxConnections int Maximum number of connections to allow.
enabledHashAlgs IEnumerable /// The signature hash algorithms (in order of preference) to enable. /// null or an empty collection will enable all of the signature hash algorithms. ///
리턴 System

NetworkConnectionProvider() 공개 메소드

public NetworkConnectionProvider ( IEnumerable protocols, Target target, int maxConnections, RSAAsymmetricKey authKey, IEnumerable enabledHashAlgorithms = null ) : System
protocols IEnumerable
target Target
maxConnections int
authKey RSAAsymmetricKey
enabledHashAlgorithms IEnumerable
리턴 System

NetworkConnectionProvider() 공개 메소드

Initializes a new instance of the NetworkConnectionProvider class.
is null. is <= 0
public NetworkConnectionProvider ( Protocol protocol, Target target, int maxConnections ) : System
protocol Protocol The protocol to accept.
target Target The target to listen to.
maxConnections int Maximum number of connections to allow.
리턴 System

Start() 공개 메소드

public Start ( MessageTypes types ) : void
types MessageTypes
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void