Class Flux
public class Flux
- Inheritance
-
Flux
Constructors
Flux(IPort, Logger)
public Flux(IPort port, Logger logger)
Parameters
Fields
roomByteCount
public const int roomByteCount = 2
Field Value
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
OnPacketSent
public event Action<uint> OnPacketSent