[REBOL] Re: UDP Networking (fwd)
From: holger:rebol at: 19-Oct-2000 8:39
On Thu, Oct 19, 2000 at 03:55:17PM +0100, Hayes Philip wrote:
> Why ?
read-io is not intended to be used with UDP. It is a low-level function that was
added to REBOL only for use by REBOL's internal protocol implementations (HTTP
etc.). It bypasses a lot of useful code, including, in the case of UDP, the code
that retrieves the peer's IP address and port number and places them into the
port object.
> On Thu, Oct 19, 2000 at 02:16:25PM +0100, Hayes Philip wrote:
> > Holger,
> >
> > I'm running 2.4.37.10.1 on Solaris 2.6
> >
> > when I run this ...
> > #####
> > buffer: make string! 1000
> > listen-port: open/binary/direct udp://:9999
> > forever [
> > wait listen-port
> > read-io listen-port buffer 1000
>
> Use copy, not read-io.
--
Holger Kruse
[holger--rebol--com]