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

[REBOL] A couple of things regarding ports Re:(7)

From: sqlab:gmx at: 19-Sep-2000 10:48

Hello ---------------------------------------------- [multimalte--theinbox--org] wrote: Try something like: dispatch [port1 [print "Port1"] port2 [print "Port2"]] as your: print first port1 may be waiting for input on 'port1. the whole idea was to wait for data from the ports :) however, if I do it like [print "Port1"] I get spammed with a never ending list of Port1's, allthough the other end of Port1 isn't sending anything, and occasionally one or two Port2's.. something with the 'wait seems fishy enough?.. Cheers, malte ------------------------------ As long as you do not handle the port event correctly, you will get the event always again. You have to do something like [new-port: first serv-port] on the port after it gets a connection to satisfy the event handler. It seems to be a behaviour of wait to give back unserviced data as new until they are removed from the port. regards AR -- Sent through GMX FreeMail - http://www.gmx.net