Brightsign Object Reference Manual (FW 5.1) Manuale Utente Pagina 193

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 341
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 192
185
NETWORKING OBJECTS
roDatagramSender, roDatagramReceiver, roDatagramSocket, roDatagramEvent
The roDatagramSender and roDatagramReceiver objects allow for simple sending and receiving of unicast and broadcast
UDP packets. The roDatagramEvent object can be used to both send and receive UDP packets.
roDatagramSender
This object allows UDP packets to be sent to a specified destination.
Object Creation: The roDatagramSender object is created with no parameters.
CreateObject("roDatagramSender")
Interfaces: ifDatagramSender
The ifDatagramSender interface provides the following:
SetDestination(destination_address As String, destination_port As Integer) As
Boolean: Specifies the destination IP address in dotted quad form along with the destination port. This function
returns True if successful.
Send(packet As Object) As Integer: Sends the specified data packet as a datagram. The packet may be
a string or an roByteArray. This method returns 0 upon success and a negative error code upon failure.
This example script broadcasts a single UDP packet containing "HELLO" to anyone on the network listening on port
21075:
sender = CreateObject("roDatagramSender")
Vedere la pagina 192
1 2 ... 188 189 190 191 192 193 194 195 196 197 198 ... 340 341

Commenti su questo manuale

Nessun commento