[REBOL] Re: Peer to Peer communication
From: ryanc:iesco-dms at: 13-Apr-2001 15:56
Anytime Andrew,
--- peer A ---
>> serving-port: open/lines tcp://:4040
>> conn: first wait [serving-port] ; waits until peer B connects
>> msg: first conn ; will wait for incoming message
== "Hello world!"
>> insert conn "Hello back!"
>> close conn
>> close serving-port
--- peer B ---
>> xmit-port: open/lines tcp://10.67.96.3:4040
>> insert xmit-port "Hello world!^/"
>> msg: first xmit-port ; will wait for reply
== "Hello back!"
>> close xmit-port
--Ryan
Andrew Martin wrote:
> Can some one show how to achieve Peer to Peer communication between two
> Rebol clients? For example simply transferring, say, this string:
> Test: "A test message"
> Thanks!
> Andrew Martin
> ICQ: 26227169 http://members.nbci.com/AndrewMartin/
> -><-
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400
I am enough of an artist to draw freely upon my imagination.
Imagination is more important than knowledge. Knowledge is
limited. Imagination encircles the world.
-Einstein