Table of Contents

Class RemoteClient

Namespace
QuickLink
Assembly
QuickLink.dll

Represents a remotely connected client.

public class RemoteClient : IDisposable
Inheritance
RemoteClient
Implements
Inherited Members

Constructors

Initializes a new instance of the RemoteClient class with the specified host.

public RemoteClient(Host host)

Parameters

host Host

The host associated with the remote client.

Initializes a new instance of the RemoteClient class with the specified TCP client.

public RemoteClient(TcpClient client)

Parameters

client TcpClient

The TCP client associated with the remote client.

Fields

Gets the TCP client associated with the remote client.

public readonly TcpClient? Client

Field Value

TcpClient

Occurs when the client disconnects from the server.

public EventPublisher ClientDisconnected

Field Value

EventPublisher

Occurs when an exception occurs while communicating with the remote client.

public EventPublisher<Exception> ExceptionOccured

Field Value

EventPublisher<Exception>

Gets the host associated with the remote client.

public readonly Host? Host

Field Value

Host

Methods

Releases all resources used by the RemoteClient object.

public void Dispose()

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

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Finalizes the remote client instance.

protected ~RemoteClient()

Sends a message to the remote client.

public void Send(MessageWriter writer)

Parameters

writer MessageWriter

The message writer containing the message to send.

Events

Occurs when a message is received from the remote client.

public event EventHandler<MessageReader>? MessageReceived

Event Type

EventHandler<MessageReader>