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

[REBOL] REBOL Internet Chess? Re:(2)

From: rebol:techscribe at: 3-Aug-2000 1:29

Hi n.p. you wrote:
>Now that you've got my wheels spinning, would it be possible to develop a >real-time chat application in REBOL?
I just sent an email to the Ally list in the thread module that includes a rudimentary chat-type server. With a few modifications, it should do something like this. To collect single characters from the console you can use something like Cal Dixon's code for his rem editor (which I recommend, btw. A well-designed and very useful and surprisingly stable beta version): port: open/binary [ scheme: 'console ] get-key: does [ wait port to-string copy/part port 1 ] All you need to do is open an additional tcp port add code that inserts the value returned by get-key into the tcp port. On the client side you open a tcp port and use prin to output the character that was received on the tcp input port. Hope this helps, ;- Elan [ : - ) ] author of REBOL: THE OFFICIAL GUIDE REBOL Press: The Official Source for REBOL Books http://www.REBOLpress.com visit me at http://www.TechScribe.com