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

[REBOL] Re: Async Question

From: antonr::lexicon::net at: 15-Nov-2004 1:45

Hi Charles, This script has a bit of a bizarre style to it. It looks like you are using the error handling to decide whether to open a client or server. (If there's an error opening the server a second time, then become a client). So you must run the script, press escape, then run again to open the client. This is hard to understand and I don't recommend it. Better to separate the script into two clearly defined parts: server and client. It looks like you are also setting the server and client to use the same handler code. (I know, not the same instance of the handler, but still the same code.) So client and server are each waiting for the other to write something, so nothing happens ! :) On 'connect, client should send a request to the server, server will 'read this, then 'write back to the client, and the client will 'read that. Anton.