🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages Started by nil Tue, 17 Oct 2006 06:46
TClientSocket Proxy
#1871
Author: nil
Date: Tue, 17 Oct 2006 06:46
10 lines
1012 bytes
Hi there,

How to set Proxy Setting for TClientSocket, so that it can coonect to any remote machine outside of its LAN by using specified Proxy.

I am using C++ Builder 6.

Thanks,

Nil.
Re: TClientSocket Proxy
#1873
Author: Remy Lebeau (TeamB)
Date: Tue, 17 Oct 2006 08:24
14 lines
1458 bytes
"nil" <nilesh.gawali@gmail.com> wrote in message
news:45347c57$1@newsgroups.borland.com...

> How to set Proxy Setting for TClientSocket

There is no proxy setting for TClientSocket.  You have to implement the
proxy support in your own code.  For instance, if you want to use a SOCKS
server, then you have to set the TClientSocket to connect to the proxy's
IP/Port and then send a formatted SOCKS request to the proxy to tell it
where to connect to next.


Gambit
Re: TClientSocket Proxy
#1874
Author: Ni,
Date: Tue, 17 Oct 2006 10:33
10 lines
995 bytes
Hi Remy,

Thanks for your prompt reply.

will you give me some source code/Example for it.

Thanks,

Nil
Re: TClientSocket Proxy
#1875
Author: Remy Lebeau (TeamB)
Date: Tue, 17 Oct 2006 17:02
24 lines
1753 bytes
"Ni," <nilesh.gawali@gmail.com> wrote in message
news:4534b170$1@newsgroups.borland.com...

> will you give me some source code/Example for it.

I cannot do that.  You will have to read up on the relavant RFCs for
yourself, ie:

    RFC 1928 - SOCKS Protocol Version 5
    http://www.ietf.org/rfc/rfc1928.txt

    Tunneling TCP based protocols through Web proxy servers

http://www.web-cache.com/Writings/Internet-Drafts/draft-luotonen-web-proxy-tunneling-01.txt

Just to name a couple.  There are other proxy types available.

Otherwise, I would suggest switching to a TCP library that has native proxy
support already implemented.  Indy, for example, has components that can be
attached to a connection for transparent proxying.


Gambit
Re: TClientSocket Proxy
#1778
Author: nil
Date: Wed, 18 Oct 2006 10:50
6 lines
984 bytes
Hi Remy,

Thanks for your suggestions.

nil
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads