Standard-Bibliothek / UDP
UDP
UDP-Push
UdpPush(33333).send("localhost", 22222, 65b).close UdpPush(33333).send("localhost", 22222, "Hallo!").close UdpPush(33333).send("localhost", 22222, [65,87,77,73,67,82]).close
UdpPush(33333).send("localhost", 22222, [300, 'x']).close
UDP-Service
udp = UdpService(33333) udp:@recieve
%.print
%.type.print
%.host.print
%.port.print
%.string.print
%.bytes.print
udp.start udp.send("localhost", 22222, "abc")
ba = ByteArray(4) ba[1] = 77 ba[2] = 99 ba[3] = 124 ba[4] = 64 udp.send("localhost", 22222, ba)
udp.send("localhost", 22222, [100,101,102,103,104])
Timer.sleep(5000) udp.stop
- Powered by
OghsWiki
-