Article View: borland.public.cppbuilder.internet.socket
Article #5763Re: TServerSocket - Limiting Connections
From: Remy Lebeau (TeamB)
Date: Tue, 22 Jun 2004 17:01
Date: Tue, 22 Jun 2004 17:01
22 lines
1916 bytes
1916 bytes
"Joe St. Onge" <jstonge@nel-techlabs.com> wrote in message news:40d84edf$1@newsgroups.borland.com... > What happened is that the Socket->Close() also closed my existing socket. Not possible. Every connection has its own TCustomWinSocket instance. Disconnecting one socket does not have any effect on other existing sockets. > I am attempting to keep one connection per socket and > not accept any more connections on that socket until the > first has finished... Worse case scenerio, you may just have to resort to changing to a different component, or even just acessing the WinSock API directly. TServerSocket was not designed to handle only a single connection, but instead handles multiple connections. It can be used for a single connection, but at the cost of first accepting all connections and then closing any connection that you don't want. Gambit
Technical Details
Message-ID:
<40d866da$1@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> <40d84edf$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> <40d84edf$1@newsgroups.borland.com> Subject: Re: TServerSocket - Limiting Connections Date: Tue, 22 Jun 2004 10:01:36 -0700 Lines: 24 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: <40d866da$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087923930 68.169.168.124 (22 Jun 2004 10:05:30 -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