🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TServerSocket - Limiting Connections

#5753
From: Joe St. Onge
Date: Mon, 21 Jun 2004 19:41
15 lines
1577 bytes
I have a application which accepts external connections from remote units,
this application is working great.  There is a problem when more than one
unit attempts to connect to the server at the same time.  The application is
designed for servicing one remote unit at a time.

What I need to do is to limit the Server Connections to 1 at a time.  The
application set the Server Socket to port 3002, when a remote unit connects
to 3002 the servicing begins, I need to prevent the Server Socket from
accepting another connection until that remote unit completes.

Anyone know how to restrict the number of connections that a server socket
will accept?

Regards,
Joe
Technical Details
Message-ID: <40d739d9@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-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11508e,68e81cd18de9d3fe,start
X-Google-Attributes: gid11508e,public
Reply-To: "Joe St. Onge" <jstonge@nel-techlabs.com>
From: "Joe St. Onge" <jstonge@nel-techlabs.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TServerSocket - Limiting Connections
Date: Mon, 21 Jun 2004 15:41:16 -0400
Lines: 17
Organization: Nel-Tech Labs
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: 216.41.126.194
Message-ID: <40d739d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087846873 216.41.126.194 (21 Jun 2004 12:41:13 -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