🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple TIdTCPServer

#4872
From: Remy Lebeau (TeamB)
Date: Fri, 03 Dec 2004 04:36
26 lines
1696 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
news:41afd835$1@newsgroups.borland.com...

> My IdTCPServers listen the same IP but different port.

You can still use a single TIdTCPServer for that.  That is what the Bindings
collection is designed for.

> It seems just IdTCPServer1 can accept clients, but the others can't.

TIdTCPServer can handle multiple clients on multiple IP/port combinations
just fine.  Any problems it may have is most likely in problem in your own
code.

> How can I use just one IdTCPServer to listen different ports?

Look at the Bindings property.

> Do you have some sample codes for me?

You don't need any code.  You can set everything up at design-time, and it
will work-as-is.


Gambit
Technical Details
Message-ID: <41afed35$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41af3d4c$1@newsgroups.borland.com> <41af46ae$1@newsgroups.borland.com> <41afd835$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bcb11f40fbaab32b
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:  <41af3d4c$1@newsgroups.borland.com> <41af46ae$1@newsgroups.borland.com> <41afd835$1@newsgroups.borland.com>
Subject: Re: Multiple TIdTCPServer
Date: Thu, 2 Dec 2004 20:36:01 -0800
Lines: 28
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: <41afed35$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102048565 68.69.17.41 (2 Dec 2004 20:36:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail