Socket connection throw a proxy server

  • Thread starter Lorenzo Soncini
  • 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
 
P

Peter Duniho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top