[REBOL] Re: Peer to Peer communication
From: ryanc:iesco-dms at: 13-Apr-2001 15:56
--- 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
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"
> 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.
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.