Article View: borland.public.cppbuilder.internet.socket
Article #4874Re: Multiple TIdTCPServer
From: Willie
Date: Fri, 03 Dec 2004 03:18
Date: Fri, 03 Dec 2004 03:18
47 lines
2122 bytes
2122 bytes
Hello Paul: 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. "Paul Machiaverna" <paul.machiaverna@i-stat.com> ���g��l��s�D :41af46ae$1@newsgroups.borland.com... > > Willie, > > Why are you using multiple IdTCPServer objects in your application? Only one is needed to listen on one or multiple TCP ports. > > Paul Mac > > "Willie" <Willie.nospam@nospam.pchome.com.tw> wrote: > >Hello: > > > >Can I use multiple TIdTCPServers in an application? > >For example: IdTCPServer1, IdTCPServer2,...., IdTCPServerN. > > > >When the clients connect to IdTCPServer1, the other IdTCPServer can't accept > >clients. > >Is there any way can solve this problem? > > > >Thank you very much. > >Willie. > > > > >
Technical Details
Message-ID:
<41afd835$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-mailReferences:
<41af3d4c$1@newsgroups.borland.com> <41af46ae$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> <41af46ae$1@newsgroups.borland.com> Subject: Re: Multiple TIdTCPServer Date: Fri, 3 Dec 2004 11:18:28 +0800 Lines: 49 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: <41afd835$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102043189 211.20.227.67 (2 Dec 2004 19:06:29 -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