🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6794

Re: Client/Server Question

#6794
From: Bob Gonder
Date: Mon, 11 Apr 2005 14:34
22 lines
1930 bytes
JD wrote:
>Hans Galema  wrote:
>>
>>So the client opens the file of the achived data itself?
>
>Correct. Actually, they open an archived data base (single) and
>the program access the data files (plural).
>
>> You did not tell how you disallow a client to change the data.
>
>Add, Change, Delete functions check if connected and displays
>a warning that they can't do that with archive data (if not
>connected). My only objection is that I have similar read
>functions in both the server and the client application.

So, the Admin tells the server which db is the Live one?
If a client then asks the server for a non-Live db, then the server
would disallow writes.

So, instead of checking "is connected", check "is Live db".
Does your server keep session info per client? It could set a flag at
the db_open event : Live or Archive.
Technical Details
Message-ID: <482l51lt6pkvoikik54hv8pq18e35sqpd0@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <42595de6$1@newsgroups.borland.com> <42598b99$1@newsgroups.borland.com> <4259d12d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8e548e1386e6e65f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Client/Server Question
Date: Mon, 11 Apr 2005 07:34:53 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <482l51lt6pkvoikik54hv8pq18e35sqpd0@4ax.com>
References: <42595de6$1@newsgroups.borland.com> <42598b99$1@newsgroups.borland.com> <4259d12d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.155.29
X-Trace: newsgroups.borland.com 1113230090 67.77.155.29 (11 Apr 2005 07:34:50 -0800)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail