🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Servers & Backup

#4254
From: Remy Lebeau (TeamB)
Date: Wed, 09 Mar 2005 20:38
17 lines
1611 bytes
"Vladimir Stefanovic" <antivari@po.sbb.co.yu> wrote in message
news:422f5694@newsgroups.borland.com...

> * How can I wait for clients to finish the connections
> first, and still be in position to inform them via same port
> that backup procedure is in progress.

It is your own responsibility to keep track of your file transfers and
backups.  Keep a thread-safe counter somewhere that specifies the number of
active transfers.  Keep a thread-safe global flag specifying if a backup is
being performed.  When you want to start the backup, check if any transfers
are in progress.  When you want to start a transfer, check if the backup is
in progress.


Gambit
Technical Details
Message-ID: <422f5ffb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <422f5694@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,1c128025d98be9a8
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: <422f5694@newsgroups.borland.com>
Subject: Re: Servers & Backup
Date: Wed, 9 Mar 2005 12:38:15 -0800
Lines: 19
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: <422f5ffb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110401019 68.69.17.41 (9 Mar 2005 12:43:39 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail