Brightsign Object Reference Manual (FW 5.1) Instrukcja Użytkownika Strona 194

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 341
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 193
186
sender.SetDestination("255.255.255.255", 21075)
sender.Send("Hello")
roDatagramReceiver
This object sends roDatagramEvent instances to a message port when UDP packets are received on a specified port.
Object Creation: The roDatagramReceiver object is created with a single parameter. The port paremeter specifies the
port on which to receive UDP packets.
CreateObject("roDatagramReceiver ", port As Integer)
Interfaces: ifIdentity, ifSetMessagePort
The ifIdentity interface provides the following:
GetIdentity() As Integer
The ifSetMessagePort interface provides the following:
SetPort(a As Object)
This example script listens for UDP packets on port 21075:
receiver = CreateObject("roDatagramReceiver", 21075)
mp = CreateObject("roMessagePort")
receiver.SetPort(mp)
while true
event = mp.WaitMessage(0)
if type(event) = "roDatagramEvent" then
Przeglądanie stron 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 340 341

Komentarze do niniejszej Instrukcji

Brak uwag