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
print buffer
print listen-port/remote-ip
clear buffer
]
####
I get ....
#####
Hello, world
none
#####
Phil
-----Original Message-----
From: Holger Kruse [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2000 13:57
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: UDP Networking (fwd)
On Thu, Oct 19, 2000 at 02:31:02AM -0700, [EMAIL PROTECTED] wrote:
>
>
> Hi!
>
> Having an udp-server
>
> s: open udp://
>
> and receiving a message
>
> copy/part s 1
> == "Blubb"
>
> How to find out, from which ip and port the message has been send?
> I know I can answer to the client, but I need to find out on which port/ip
> it lives. This feature is needed since udp often works this way.
With current experimental versions you can read the IP/port combination
from s/remote-ip and s/remote-port, after reading the message.
--
Holger Kruse
[EMAIL PROTECTED]
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
**********************************************************************
This email and any attachments may be confidential and the subject of
legal professional privilege. Any disclosure, use, storage or copying
of this email without the consent of the sender is strictly prohibited.
Please notify the sender immediately if you are not the intended
recipient and then delete the email from your inbox and do not
disclose the contents to another person, use, copy or store the
information in any medium.
**********************************************************************
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.