🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sockets & Services

#4996
From: Remy Lebeau (TeamB)
Date: Tue, 09 Nov 2004 20:06
26 lines
1797 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message
news:41911a60@newsgroups.borland.com...

> Is it proper to Close() the server temporarily
> when service goes to Pause or Stop mode
> and Open() it when Continue or Start?

You should definately close the server when stopping the server, and open it
when starting the service.  As for pausing, that is your own choice,
especially since you choose whether you want the service to support pausing
in the first place.

The main problem with closing the server is that it will automatically
disconnect all clients who are already connected to the server  If you want
to support pausing, one option would be to simply prevent pausing while
there are connected clients, or at least while critical operations are in
progress.

> How to prevent the possible data transfer that
> is in progress from interruption?

Don't close the server.


Gambit
Technical Details
Message-ID: <4191230f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41911a60@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,194a8fc616d3cbcf
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41911a60@newsgroups.borland.com>
Subject: Re: Sockets & Services
Date: Tue, 9 Nov 2004 12:06:53 -0800
Lines: 28
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.69.17.41
Message-ID: <4191230f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100030735 68.69.17.41 (9 Nov 2004 12:05:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail