Skip to main content

class Wacom::Kiosk::Integrator::MQServer

class Wacom::Kiosk::Integrator::MQServer
: public Wacom.Kiosk.Integrator.Server

A TCP server wrapper, utilizing byte array message communication between multiple tablet clients and the integrator server.

Summary

MembersDescriptions
{property} override ILogger LoggerGets or sets a logger instance overriding the server Logger.
{property} IEnumerable< ClientMetadata > clients
public inline MQServer(string certificate,string certificatePassword,int port,bool local)The server constructor.
public inline MQServer(X509Certificate2 certificate,int port,bool local)The server constructor.
public inline virtual override void UpdateClientContext(string clientName,int documentPage,string documentPath)Updates client document context.
public inline virtual override async void SendMessage(string clientAddress,byte[] msg)Sends a byte message to the client specified.
public inline virtual override void BroadcastMessage(byte[] msg)Broadcasts a byte message to all connected clients, stored inside
See also: ActiveClients


.
public inline virtual override void Dispose()Closes all active client connections and disposes the TCP server instance.

Members

{property} override ILogger Logger

Gets or sets a logger instance overriding the server Logger.

{property} IEnumerable< ClientMetadata > clients

public inline MQServer(string certificate,string certificatePassword,int port,bool local)

The server constructor.

Parameters

  • certificate The server certificate name.

  • certificatePassword The server ceritifcate password.

  • port The port for establishing client connections. Default is 5555.

  • local A flag to set server listening mode. local = true will loopback connections. Default is false.

public inline MQServer(X509Certificate2 certificate,int port,bool local)

The server constructor.

Parameters

  • certificate The server certificate.

  • port The port for establishing client connections. Default is 5555.

  • local A flag to set server listening mode. local = true will loopback connections. Default is false.

public inline virtual override void UpdateClientContext(string clientName,int documentPage,string documentPath)

Updates client document context.

Parameters

  • clientName The name of the client.

  • documentPage The document page that the client is currently viewing.

  • documentPath The document path, placed on the integrator machine.

public inline virtual override async void SendMessage(string clientAddress,byte[] msg)

Sends a byte message to the client specified.

Parameters

  • clientAddress The client name.

  • msg The message bytes to be sent.

public inline virtual override void BroadcastMessage(byte[] msg)

Broadcasts a byte message to all connected clients, stored inside See also: ActiveClients

.

Parameters

  • msg The message bytes to be sent.

public inline virtual override void Dispose()

Closes all active client connections and disposes the TCP server instance.