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

[REBOL] Re: event driven mechanism? (was) Re: Re: Rugby doco - wip

From: rotenca:telvia:it at: 29-Jan-2002 16:41

Hi Petr,
> - you have proxy support in your company - my example, we use 3128 port
> So, I have to use Rugby in http mode. Rugby uses http tunneling mechanism to
> thru proxy to remote 80 port. > > In one of your earlier posts you stated that your machine "would listen on
> port" or something like that. But that's not possible imo, as e.g. our
> doesn't allow any active connection from outside ports to internal networks,
> it port 80 or different ... so - we should forget tcp listen port here.
I'm not a TCP guru at all. But i'm sure than to wait on an rebol open port it is possible also if the port has not been open in TCP listen mode (which requires server rights). The sequence should be: -client open a connection on server port 80 and send a message without waiting -client remembers the open port -client makes some stuff and then wait on the already open port -server receive message, makes some stuff and then reply on the same connection -client awakes and read the reply message I think should work also a more complex mode: -client opens a connection on server port 80 and sends a message with an unique id -client closes the port -client remembers the unique id of message -client makes some stuff -server receives the message, closes the connection and makes some stuff -client opens a new connection on server port 80 and sendes a message with previous id -client wait for a reply -server receives the message, associates the id to the result and then replies on the same connection -server closes the connection -client reads the reply message and closes the connection --- Ciao Romano