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.
História
| Release | Mudanças |
|---|---|
| 20 R10 | Classe adicionada |
UDPEvent Object
A UDPEvent object is immutable and non-streamable.
As seguintes propriedades estão disponíveis:
| address : Text the IP address of the remote machine |
| data: Blob the data associated with the event |
| port : Number the port number of the remote machine |
| type : Text the type of the event |
.address
address : Text
Descrição
The .address property contains the IP address of the remote machine.
.data
data: Blob
Descrição
The .data property contains the data associated with the event. It is only valid for events of type "data".
.port
port : Number
Descrição
The .port property contains the port number of the remote machine.
.type
type : Text
Descrição
The .type property contains the type of the event. Valores possíveis:
"data": Indica que os dados foram recebidos."error": Indicates that an error occurred during the UDPSocket."terminate": Indicates that the UDPSocket is about to be released.