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

[REBOL] waiting on tcp ports

From: mlo::info::fundp::ac::be at: 22-May-2004 16:40

Hi all, I have a problem. I execute this code: port1: open/lines/direct tcp://:4321 port2: open/lines/direct tcp://:8989 data: make string! 1000 ready: wait/all [port1 port2 10] if ready [ probe read-io ready data 1000 ] to listen on multiple ports. I observe the following error: ** Script Error: read-io expected port argument of type: port ** Near: probe read-io ready data 1000 How can I read the data when listening on two or more ports? (the same error with dispatch) Thanx, Miguel Lopez