Table of Contents

Interface IRelayConnection

Namespace
Coherence.Toolkit.Relay
Assembly
Coherence.Toolkit.dll

Represents a single client connection made over external service that is relayed to the Replication Server.

public interface IRelayConnection

Methods

OnConnectionClosed()

Called by the CoherenceRelayManager after de-registration of the connection via CloseAndRemoveRelayConnection(IRelayConnection).

void OnConnectionClosed()

OnConnectionOpened()

Called by the CoherenceRelayManager after successful registration of the connection via OpenRelayConnection(IRelayConnection).

void OnConnectionOpened()

ReceiveMessagesFromClient(List<ArraySegment<byte>>)

Called regularly by the CoherenceRelayManager to fetch all messages (packets) received from that connection and relay them to the Replication Server.

void ReceiveMessagesFromClient(List<ArraySegment<byte>> packetBuffer)

Parameters

packetBuffer List<ArraySegment<byte>>

Buffer to which received packets should be added. Order of the packets should be preserved.

SendMessageToClient(ArraySegment<byte>)

Called by the CoherenceRelayManager when there's a message (packet) from the Replication Server that should be relayed to this connection.

void SendMessageToClient(ArraySegment<byte> packetData)

Parameters

packetData ArraySegment<byte>