Use 'wait on the port. When 'wait returns, you have a message. For more
details refer to the the REBOL documentation
(http://www.rebol.com/users/netports.html - kinda skimpy on the ports
section IMO) or study the examples on rebol.org.

- Michael Jelinek

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 10:28 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] listen ports


How do I know if I have a message to read in my listen port or not?

port: open tcp://:8000
either ???-what goes here?-??? [
  io-port: first port
  print copy io-port
  close io-port
  ][
  print "Nothing to see here..."
  ]
close port


Thanks for any help,
Max

Reply via email to