UDP broadcast
[1/4] from: rebol-list2::seznam::cz at: 18-Jun-2003 16:54
Hello rebol-list,
I've found this UDP broadcast example (by Norman Deppenbroek):
data: "1101001011110000" ; port 54000 binary notation as text to bc
forever [
connection: open udp://255.255.255.255:54000
set-modes connection [ broadcast: true ]
insert connection data
print [ now/date "*" now/time ]
close connection
wait 0:15:0 ; wait 15 minutes for next broadcast
]
but when I listen on udp://:54000 I'm not receiving any messages. Does
anybody know how to set-up the UDP broadcast listener?
Thanks,
Oldes
[2/4] from: rebol:optushome:au at: 19-Jun-2003 10:42
Hi Oldes,
There is a sample udp server and client example in the docs.
http://www.rebol.com/docs/core23/rebolcore-13.html#sect15.
Not sure if it is uptodate though.
Cheers,
Allen K
[3/4] from: amicom:sonic at: 18-Jun-2003 22:33
This worked for me:
Session 1:
>> server: open udp://:54000
>> forever [wait server print [now copy server]]
Session 2 (As below, but I reduced your wait time to 30 sec. for testing)
Bohdan "Bo" Lechnowsky
Lechnowsky Technical Consulting
At 04:54 PM 6/18/03 +0200, you wrote:
[4/4] from: Rebolinth:nodep:dds:nl at: 19-Jun-2003 8:25
Hello RebOldes,
There are more way to do it but below an example how to listen:
listen: open udp://:54000
forever [ print copy wait listen udp://:54000 ]
By the way, i was yesterday sniffing the internet and i found some nice examples
of Multicasting on the French Rebol site...
(R)egards,
Norman.
Quoting rebOldes <[rebol-list2--seznam--cz]>:
-> Hello rebol-list,
->
-> I've found this UDP broadcast example (by Norman Deppenbroek):
->
-> data: "1101001011110000" ; port 54000 binary notation as text to bc