Article View: borland.public.cppbuilder.internet.socket
Article #5764Re: TServerSocket - Limiting Connections
From: Remy Lebeau (TeamB)
Date: Tue, 22 Jun 2004 16:58
Date: Tue, 22 Jun 2004 16:58
15 lines
1470 bytes
1470 bytes
"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:40d84b21$1@newsgroups.borland.com...
> if ( ChanServerSocket->Socket->ActiveConnections )
The ActiveConnections property is incremented before the OnAccept event is
triggered. Your code would effectively disconnect *all* incoming
connections, not allowing a single connection to remain active. You should
be doing this instead:
if ( ChanServerSocket->Socket->ActiveConnections > 1 )
Gambit
Technical Details
Message-ID:
<40d8661d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40d739d9@newsgroups.borland.com> <40d75c9d$1@newsgroups.borland.com> <40d84965$1@newsgroups.borland.com> <40d84b21$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11508e,68e81cd18de9d3fe X-Google-Attributes: gid11508e,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <40d739d9@newsgroups.borland.com> <40d75c9d$1@newsgroups.borland.com> <40d84965$1@newsgroups.borland.com> <40d84b21$1@newsgroups.borland.com> Subject: Re: TServerSocket - Limiting Connections Date: Tue, 22 Jun 2004 09:58:27 -0700 Lines: 17 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.169.168.124 Message-ID: <40d8661d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087923741 68.169.168.124 (22 Jun 2004 10:02:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail