Table of Contents

Class Flux

Namespace
Coherence.Flux
Assembly
Coherence.Transport.dll
public class Flux
Inheritance
Flux

Constructors

Flux(IPort, Logger)

public Flux(IPort port, Logger logger)

Parameters

port IPort
logger Logger

Fields

roomByteCount

public const int roomByteCount = 2

Field Value

int

Methods

Listen(EndpointData)

public void Listen(EndpointData endpoint)

Parameters

endpoint EndpointData

Open(string)

public void Open(string hostAndPort)

Parameters

hostAndPort string

SendPacket(ArraySegment<byte>)

public void SendPacket(ArraySegment<byte> packet)

Parameters

packet ArraySegment<byte>

SendPacketTo(ArraySegment<byte>, IPEndPoint)

public void SendPacketTo(ArraySegment<byte> packet, IPEndPoint endpoint)

Parameters

packet ArraySegment<byte>
endpoint IPEndPoint

SetRoomId(ushort)

public void SetRoomId(ushort roomId)

Parameters

roomId ushort

Events

OnPacketReceived

public event Action<IInOctetStream, IPEndPoint> OnPacketReceived

Event Type

Action<IInOctetStream, IPEndPoint>

OnPacketSent

public event Action<uint> OnPacketSent

Event Type

Action<uint>