2020-11-30 08:12:07 +00:00

19 lines
556 B
C#

// incoming message queue of <connectionId, message>
// (not a HashSet because one connection can have multiple new messages)
// -> a struct to minimize GC
namespace Telepathy
{
public struct Message
{
public readonly int connectionId;
public readonly EventType eventType;
public readonly byte[] data;
public Message(int connectionId, EventType eventType, byte[] data)
{
this.connectionId = connectionId;
this.eventType = eventType;
this.data = data;
}
}
}