Aller au contenu principal
Version: Suivant

UDPEvent

The UDPEvent class provides information about events occurring during the lifecycle of a UDP socket. It is generated when a UDPSocket is opened and is utilized in callbacks onData, onError, and onTerminate.

Historique
ReleaseModifications
20 R10Classe ajoutée

UDPEvent Object

A UDPEvent object is immutable and non-streamable.

Les propriétés suivantes sont disponibles :

data : Blob
the data associated with the event
ip : Text
the IP address of the remote machine
port : Number
the port number of the remote machine
type : Texte
the type of the event

.data

data : Blob

Description

The .data property contains the data associated with the event. It is only valid for events of type "data".

.ip

ip : Text

Description

The .ip property contains the IP address of the remote machine.

.port

port : Number

Description

The .port property contains the port number of the remote machine.

.type

type : Texte

Description

The .type property contains the type of the event. Valeurs possibles :

  • "data" : indique que des données ont été reçues.
  • "error": Indicates that an error occurred during the UDPSocket.
  • "terminate": Indicates that the UDPSocket is about to be released.

Voir également

UDPSocket