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
it.print
it.type.print
it.host.print
it.port.print
it.string.print
it.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
-