Method PollEvent
PollEvent(out ulong, out ArraySegment<byte>, out float)
Polls for incoming events, with an extra output parameter to report the precise time the event was received.
Declaration
public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte> payload, out float receiveTime)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId | The clientId this event is for |
ArraySegment<byte> | payload | The incoming data payload |
float | receiveTime | The time the event was received, as reported by m_RealTimeProvider.RealTimeSinceStartup. |
Returns
Type | Description |
---|---|
NetworkEvent | Returns the event type |