> When I use a webbrowser to connect to PC1:80, it creates multiply 
> connections to PC1:80. (6 connections at the same time)

I didn't really follow your original requirement or PC1/PC2 stuff, but
I believe you are effectively writing a 'reverse proxy' and it needs to
support multiple connections between source and destination.  

So the proxy needs to based on TWSocketServer so it can accept multiple
connections, with each client having it's own TWSocket for the remote
connection.  That way your six connections from the browser will all
connect in parallel.   

There is a 10 year old ICS reverse proxy project here:

https://sourceforge.net/projects/pxy/?source=directory

It needs updating to ICSv8 (source file names have changed), and has
some problems relating to lack of any buffering.  But it essentially
works.  

I used it as the basis of a commercial HTTPS proxy project, although in
retrospect there is virtually none of this code left in the final
product and starting from scratch would have been faster. 

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to