Socket connection throw a proxy server

  • Thread starter Thread starter Lorenzo Soncini
  • Start date Start date
L

Lorenzo Soncini

Hy,
i have made a program who use a TCPClient for comunication by socket with
other system. It's wok in 3 location but in the one I have to use a proxy
(Squid) for access the destination.

MyProgram ---> SquidProxy ---> DestinationServer

How I can tell to my TCPClient using the proxy for soket connetction?
I have found many information about the webproxy connection but none about
socket connection.

Thanks and sorry for my bad english

Lorenzo Soncini
Italy - Trento TN
 
Hy,
i have made a program who use a TCPClient for comunication by socket
with other system. It's wok in 3 location but in the one I have to use a
proxy (Squid) for access the destination.

MyProgram ---> SquidProxy ---> DestinationServer

How I can tell to my TCPClient using the proxy for soket connetction?

You can't. That's not something that's dealt with at the TCP protocol
level. It's an application protocol thing.

Ideally, your proxy will handle this transparently. But if it doesn't,
you need to find out what proxy protocol the proxy server uses and write
your application to support that protocol.

Pete
 
Back
Top