Search Results for

    Show / Hide Table of Contents

    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

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat