I've been using sockets for a while but I've been unable to figure out how to tunnel a connection through a proxy server. I have a simple chat client/server on which I'm practising this and I want the client to work from behind a proxy.

I'm using Borland C++ Builder 5.