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

[REBOL] Re: Using 'wait with a series of ports

From: antonr:iinet:au at: 14-Nov-2003 20:23

> server: open/lines tcp://:23 ; listen for connections > clients: copy [] > insert clients server > > Then obviously client/1 = server > > But if lower down I have... > > connection: wait/all clients > > How do I determine the position of the port in the 'clients series?
Just use find like any other series. index? find clients connection
> Also, how do I determine if the port that is now active is a) a new > connection or b) already a known connection, but is trying to send data > to the server (like the user has typed something in, a name/password, > etc.). Thanks for the help, I know I can depend on people here :]
Too hot to answer this. Anton.