Click or drag to resize

IClient Interface

Defines a client involved in server-client communication.

Namespace: GSF.Communication
Assembly: GSF.Communication (in GSF.Communication.dll) Version: 2.4.205-beta
Syntax
public interface IClient : ISupportLifecycle, 
	IDisposable, IProvideStatus

The IClient type exposes the following members.

Properties
 NameDescription
Public propertyConnectionString Gets or sets the data required by the client to connect to the server.
Public propertyConnectionTime Gets the Time for which the client has been connected to the server.
Public propertyCurrentState Gets the current ClientState.
Public propertyEnabled Gets or sets a boolean value that indicates whether the object is enabled.
(Inherited from ISupportLifecycle)
Public propertyIsDisposed Gets a flag that indicates whether the object has been disposed.
(Inherited from ISupportLifecycle)
Public propertyMaxConnectionAttempts Gets or sets the maximum number of times the client will attempt to connect to the server.
Public propertyName Gets the name of the object providing status information.
(Inherited from IProvideStatus)
Public propertyReceiveBufferSize Gets or sets the size of the buffer used by the client for receiving data from the server.
Public propertySendBufferSize Gets or sets the size of the buffer used by the client for receiving data from the server.
Public propertyServerIndex Gets the current server index, when multiple server end points are defined.
Public propertyServerUri Gets the server URI.
Public propertyStatistics Gets the TransportStatistics for the client connection.
Public propertyStatus Gets the current status details about object providing status information.
(Inherited from IProvideStatus)
Public propertyTextEncoding Gets or sets the Encoding to be used for the text sent to the server.
Public propertyTransportProtocol Gets the TransportProtocol used by the client for the transportation of data with the server.
Top
Methods
 NameDescription
Public methodConnect Connects client to the server synchronously.
Public methodConnectAsync Connects client to the server asynchronously.
Public methodDisconnect Disconnects client from the server synchronously.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodInitialize Initializes the state of the object.
(Inherited from ISupportLifecycle)
Public methodRead Reads a number of bytes from the current received data buffer and writes those bytes into a byte array at the specified offset.
Public methodRequestNextServerIndex Requests that the client attempt to move to the next ServerIndex.
Public methodSend Sends data to the server synchronously.
Public methodSendAsync Sends data to the server asynchronously.
Top
Events
 NameDescription
Public eventConnectionAttempt Occurs when client is attempting connection to the server.
Public eventConnectionEstablished Occurs when client connection to the server is established.
Public eventConnectionException Occurs when an Exception is encountered during connection attempt to the server.
Public eventConnectionTerminated Occurs when client connection to the server is terminated.
Public eventDisposed Raised after the source object has been properly disposed.
(Inherited from ISupportLifecycle)
Public eventReceiveData Occurs when unprocessed data has been received from the server.
Public eventReceiveDataComplete Occurs when data received from the server has been processed and is ready for consumption.
Public eventReceiveDataException Occurs when an Exception is encountered when receiving data from the server.
Public eventSendDataComplete Occurs when the client has successfully sent data to the server.
Public eventSendDataException Occurs when an Exception is encountered when sending data to the server.
Public eventSendDataStart Occurs when the client begins sending data to the server.
Public eventUnhandledUserException Occurs when an Exception is encountered in a user-defined function via an event dispatch.
Top
See Also