Class RemoteClient
- Namespace
- QuickLink
- Assembly
- QuickLink.dll
Represents a remotely connected client.
public class RemoteClient : IDisposable
- Inheritance
-
RemoteClient
- Implements
- Inherited Members
Constructors
RemoteClient(Host)
Initializes a new instance of the RemoteClient class with the specified host.
public RemoteClient(Host host)
Parameters
host
HostThe host associated with the remote client.
RemoteClient(TcpClient)
Initializes a new instance of the RemoteClient class with the specified TCP client.
public RemoteClient(TcpClient client)
Parameters
client
TcpClientThe TCP client associated with the remote client.
Fields
Client
Gets the TCP client associated with the remote client.
public readonly TcpClient? Client
Field Value
ClientDisconnected
Occurs when the client disconnects from the server.
public EventPublisher ClientDisconnected
Field Value
ExceptionOccured
Occurs when an exception occurs while communicating with the remote client.
public EventPublisher<Exception> ExceptionOccured
Field Value
Host
Gets the host associated with the remote client.
public readonly Host? Host
Field Value
Methods
Dispose()
Releases all resources used by the RemoteClient object.
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the RemoteClient object and optionally releases the managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~RemoteClient()
Finalizes the remote client instance.
protected ~RemoteClient()
Send(MessageWriter)
Sends a message to the remote client.
public void Send(MessageWriter writer)
Parameters
writer
MessageWriterThe message writer containing the message to send.
Events
MessageReceived
Occurs when a message is received from the remote client.
public event EventHandler<MessageReader>? MessageReceived