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

[REBOL] Re: tcp port open?

From: sqlab:gmx at: 9-Oct-2001 13:18

> Hi, > > Is there a way to now if a tcp port is open on both sides. So that a > server > (or client) can see whether or not the other side of the pipe is still > open? > > Thanks, > > Maarten
Hello Marten You can either try a read before any sending in order to see, if the connection is still valid, or if you do a wait on your port-list, you should get the closing. Of course, an error? try [sending some data] prevents you from failing, if the connection is closed during the transmission. AR AR