[REBOL] Re: REBOL via wireless...
From: anton::wilddsl::net::au at: 19-Nov-2006 23:08
Simple Client/Server example.
Open two Rebol consoles. One will be the "Server" and the other will
be the "Client". Paste the lines of code in the order as numbered below,
jumping between the two consoles when necessary.
Server
1) server-port: open/lines tcp://:4321
2) client-port: first server-port ; this waits for a connection from a
client
4) message: first client-port ; this waits for data to be inserted by the
client
7) insert client-port "hi"
Client
3) server-port: open/lines tcp://127.0.0.1:4321
5) insert server-port "hello"
6) message: first server-port ; this waits for data to be inserted by the
server
Repeat steps 4 - 7 ad infinitum.
Anton.