[REBOL] Re: Bidirectional value mapping.
From: g:santilli:tiscalinet:it at: 4-Nov-2003 10:53
On Monday, November 3, 2003, 9:01:44 PM, you wrote:
BGA> I decided to use the interleaved values option. The reason I need
BGA> something like what I described is that I am creating a HTTP Proxy using
BGA> Rebol (that will eventually evolve into an HTTP Tunnel application). The
BGA> mapping is used to map the incoming port to the outgoing one as I have
BGA> data arriving and leaving from both ports so I need a way to determine
BGA> where I have to send the data I just received in a specific port.
You could have the other port in port/userdata. I.e.:
; someone connects
in-port: first listen
; you open your port
out-port: open ...
; set up the relationship
; now if you receved data on PORT
insert port/userdata copy port
; the above works for both ports
This is just to give you some ideas.
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/