Class Host
- Namespace
- QuickLink
- Assembly
- QuickLink.dll
Represents a host that communicates with a server and sends/receives messages.
public class Host : IClient, IDisposable
- Inheritance
-
Host
- Implements
- Inherited Members
Constructors
Host(int)
Initializes a new instance of the Host class with the specified port.
public Host(int port)
Parameters
portintThe port number to use for communication.
Fields
Server
The server associated with the host.
public readonly Server Server
Field Value
Properties
MessageReceived
Event that is raised when a message is received.
public MessagePublisher MessageReceived { get; }
Property Value
Methods
Dispose()
Disposes the host and releases any resources used.
public void Dispose()
Dispose(bool)
Disposes the host and releases any resources used.
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~Host()
Finalizes an instance of the Host class.
protected ~Host()
RecieveFromServer(MessageReader)
Receives a message from the server.
public void RecieveFromServer(MessageReader message)
Parameters
messageMessageReaderThe received message.
SendToServer(MessageWriter)
Sends a message to the server.
public void SendToServer(MessageWriter message)
Parameters
messageMessageWriterThe message to send.