C# Class GSF.TimeSeries.Transport.ClientConnection

Represents a DataSubscriber client connection to the DataPublisher.
Inheritance: IProvideStatus, IDisposable
Afficher le fichier Open project: GridProtectionAlliance/gsf

Méthodes publiques

Méthode Description
ClientConnection ( DataPublisher parent, System.Guid clientID, IServer commandChannel ) : System

Creates a new ClientConnection instance.

Dispose ( ) : void

Releases all the resources used by the ClientConnection object.

GetCommandChannelSocket ( ) : Socket

Gets the Socket instance used by this client connection to send and receive data over the command channel.

RotateCipherKeys ( ) : bool

Rotates or initializes the crypto keys for this ClientConnection.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the ClientConnection object and optionally releases the managed resources.

Private Methods

Méthode Description
UpdateKeyIVs ( ) : void

Creates or updates cipher keys.

m_dataChannel_ClientConnectingException ( object sender, EventArgs e ) : void
m_dataChannel_SendClientDataException ( object sender, Exception>.EventArgs e ) : void
m_dataChannel_ServerStarted ( object sender, EventArgs e ) : void
m_dataChannel_ServerStopped ( object sender, EventArgs e ) : void
m_pingTimer_Elapsed ( object sender, EventArgs e ) : void
m_reconnectTimer_Elapsed ( object sender, EventArgs e ) : void

Method Details

ClientConnection() public méthode

Creates a new ClientConnection instance.
public ClientConnection ( DataPublisher parent, System.Guid clientID, IServer commandChannel ) : System
parent DataPublisher Parent data publisher.
clientID System.Guid Client ID of associated connection.
commandChannel IServer command channel used to lookup connection information.
Résultat System

Dispose() public méthode

Releases all the resources used by the ClientConnection object.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the ClientConnection object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

GetCommandChannelSocket() public méthode

Gets the Socket instance used by this client connection to send and receive data over the command channel.
public GetCommandChannelSocket ( ) : Socket
Résultat Socket

RotateCipherKeys() public méthode

Rotates or initializes the crypto keys for this ClientConnection.
public RotateCipherKeys ( ) : bool
Résultat bool