Table of Contents

Enum ENetConnection.EventType

Namespace
Godot
Assembly
GodotSharp.dll
public enum ENetConnection.EventType : long

Fields

Connect = 1

A connection request initiated by enet_host_connect has completed. The array will contain the peer which successfully connected.

Disconnect = 2

A peer has disconnected. This event is generated on a successful completion of a disconnect initiated by PeerDisconnect(int), if a peer has timed out, or if a connection request initialized by ConnectToHost(string, int, int, int) has timed out. The array will contain the peer which disconnected. The data field contains user supplied data describing the disconnection, or 0, if none is available.

Error = -1

An error occurred during Service(int). You will likely need to Destroy() the host and recreate it.

None = 0

No event occurred within the specified time limit.

Receive = 3

A packet has been received from a peer. The array will contain the peer which sent the packet and the channel number upon which the packet was received. The received packet will be queued to the associated ENetPacketPeer.