🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #5143

Re: Indy TCPServer and proxies

#5143
From: Remy Lebeau (TeamB)
Date: Sat, 09 Oct 2004 17:49
17 lines
1586 bytes
"Lapo Guidi" <lapoguidi@inwind.it> wrote in message
news:4168173c$1@newsgroups.borland.com...

> I have a TIdTCPServer that listen on a port. on it's OnExecute it
> creates a TThread descendant with a TIdTCPClient inside that will
> ask to the remote server, elaborate the response and resend back
> to the requester.

You don't need the TThread since the event is already threaded to begin
with.

Have a look at the TIdMappedPortTCP component instead.  It already does what
you are trying to do manually.


Gambit
Technical Details
Message-ID: <416824b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4166efc5$1@newsgroups.borland.com> <4166fc3a$1@newsgroups.borland.com> <41671c26@newsgroups.borland.com> <4167289e$1@newsgroups.borland.com> <416732b1$1@newsgroups.borland.com> <41673f29$1@newsgroups.borland.com> <4168173c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3acb790ca748eb20
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4166efc5$1@newsgroups.borland.com> <4166fc3a$1@newsgroups.borland.com> <41671c26@newsgroups.borland.com> <4167289e$1@newsgroups.borland.com> <416732b1$1@newsgroups.borland.com> <41673f29$1@newsgroups.borland.com> <4168173c$1@newsgroups.borland.com>
Subject: Re: Indy TCPServer and proxies
Date: Sat, 9 Oct 2004 10:49:46 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <416824b3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097344179 68.69.17.41 (9 Oct 2004 10:49:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail