C# Class GSF.TimeSeries.Transport.ClientConnection

Represents a DataSubscriber client connection to the DataPublisher.
Inheritance: IProvideStatus, IDisposable
Exibir arquivo Open project: GridProtectionAlliance/gsf

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Private Methods

Method 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 method

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.
return System

Dispose() public method

Releases all the resources used by the ClientConnection object.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

GetCommandChannelSocket() public method

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

RotateCipherKeys() public method

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