Saltar al contenido principal
Versión: 20 R10 BETA

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.

Historia
LanzamientoModificaciones
20 R10Clase añadida

UDPEvent Object

A UDPEvent object is immutable and non-streamable.

Las siguientes propiedades están 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 : Text
the type of the event

.data

data : Blob

Descripción

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

.ip

ip: Text

Descripción

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

.port

port : Number

Descripción

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

.type

type : Text

Descripción

The .type property contains the type of the event. Los valores posibles son:

  • "data": indica que los datos han sido recibidos.
  • "error": Indicates that an error occurred during the UDPSocket.
  • "terminate": Indicates that the UDPSocket is about to be released.

Ver también

UDPSocket