C# Класс GSF.TimeSeries.Transport.ClientConnection

Represents a DataSubscriber client connection to the DataPublisher.
Наследование: IProvideStatus, IDisposable
Показать файл Открыть проект

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

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Приватные методы

Метод Описание
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

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

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

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.
Результат System

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

Releases all the resources used by the ClientConnection object.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

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.
Результат void

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

Gets the Socket instance used by this client connection to send and receive data over the command channel.
public GetCommandChannelSocket ( ) : Socket
Результат Socket

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

Rotates or initializes the crypto keys for this ClientConnection.
public RotateCipherKeys ( ) : bool
Результат bool