🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple TIdTCPServer

#4868
From: Willie
Date: Fri, 03 Dec 2004 03:31
46 lines
2254 bytes
Hello Remy:

Thanks for your reply.

My IdTCPServers listen the same IP but different port.
For example:

IdTCPServer1 listen: IP_192.168.1.1, Port_4000
IdTCPServer2 listen: IP_192.168.1.1, Port_4001
...........................................................................
IdTCPServerN listen: IP_192.168.1.1, Port_4000+N-1

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

How can I use just one IdTCPServer to listen different ports?
Do you have some sample codes for me?

Thank you very much.
Willie.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ���g��l��s�D
:41af54d6$1@newsgroups.borland.com...
>
> "Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
> news:41af3d4c$1@newsgroups.borland.com...
>
> > Can I use multiple TIdTCPServers in an application?
> > For example: IdTCPServer1, IdTCPServer2,...., IdTCPServerN.
>
> Technically yes, but why would you want to?  A single TIdTCPServer can
> handle multiple clients at a time.
>
> > When the clients connect to IdTCPServer1, the other IdTCPServer can't
> accept
> > clients.
>
> Then either 1) your servers are all trying to listen on the same IP/Port,
or
> 2) your client handling code is wrong.  Please describe your setup in more
> detail.
>
>
> Gambit
>
>
Technical Details
Message-ID: <41afdb54@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41af3d4c$1@newsgroups.borland.com> <41af54d6$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
From: "Willie" <Willie.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41af3d4c$1@newsgroups.borland.com> <41af54d6$1@newsgroups.borland.com>
Subject: Re: Multiple TIdTCPServer
Date: Fri, 3 Dec 2004 11:31:46 +0800
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 211.20.227.67
Message-ID: <41afdb54@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102043988 211.20.227.67 (2 Dec 2004 19:19:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail