Class NetworkEvent
Network event structure that wraps all data needed to identify and process it.
Inheritance
System.Object
NetworkEvent
Namespace: FlaxEngine.Networking
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class NetworkEvent : ValueType
Fields
EventType
The type of the received event.
Declaration
public NetworkEventType EventType
Field Value
NetworkEventType
|
Message
The message when this event is an "message" event - not valid in any other cases. If this is an message-event, make sure to return the message using RecycleMessage function of the peer after processing it!
Declaration
public NetworkMessage Message
Field Value
NetworkMessage
|
Sender
The connected of the client that has sent message, connected, disconnected or got a timeout.
Declaration
public NetworkConnection Sender
Field Value
NetworkConnection
|
Remarks
Only valid when event has been received on server-peer.
Properties
Default
The default NetworkEvent.
Declaration
public static NetworkEvent Default { get; }
Property Value
NetworkEvent
|