Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

REBOL via wireless...

 [1/2] from: carl:cybercraft at: 19-Nov-2006 12:39

I've just set up a wireless network and was wondering what's the simpliest way to get REBOL on one machine talking to REBOL on another. Any pointers appreciated... -- Carl Read.

 [2/2] 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:// 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.