Yes it can.

Works like this for a server:

; open the udp server port
my-udp: open/no-wait udp://:9090
; wait max 100ms for events on the port
datagram?: wait [ my-udp 100]
;if there is a datagram copy the data
if datagram? [ data: copy my-udp]


And a client:

my-udp: open udp://somehost:someport
insert my-dup "lalala"
data: copy my-udp

See the Core user guide for more details.

--Maarten



Brett Handley wrote:

>Hi,
>
>>One question: Can Rebol handle UDP packets? On those examples people are
>>allvays using TCP but we use UDP on our protocols to embedded systems.
>>
>
>Yes, but I haven't used it. I have on occassion seen scripts floating around
>that use it.
>Maybe someone else will point you to some examples.
>
>Brett.
>


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to