🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Client/Server Question

#6783
From: JD
Date: Mon, 11 Apr 2005 02:21
50 lines
2857 bytes
Hans Galema <notused@notused.nl> 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.

> Better would be to make it impossible to change the data.

That proposition sounds like copy protection ... you can make
it difficult (less so with file access) but not impossible.

> You can do that by setting all the files in the archived
> data to read-only.

The user could always change the file attributes and then modify
the data. If I disallow modifications in code, the user can only
corrupt the data file ... in which case he/she had better have
followed propper backup proceedures.

I believe that a certain amount of responsibility for any
programs' success rests with the administrator. I just don't
have a clear idea of where that line is. For example, checking
that the specified port is clear for use.

Certainly one should be performing error checking but the
administrator should also know what they're doing. The same
is true with providing access to data. It's up to him/her to
protect the data and it's up to you to not enable the user to
have invalid access to the data.

I thought this would be a common issue where users needed to
look at historical data. Because of that, I have a 'SnapShot'
that archives the db at where ever it is at that momment, an
automatic archive when the accounting period is closed and I
have a rollback / forward function that applies changes to any
specified db (archived, SnapShot or live) and rolls it (back
or forth) to a specific date and time.

Is it just me?

~ JD
Technical Details
Message-ID: <4259d12d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42595de6$1@newsgroups.borland.com> <42598b99$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: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: Client/Server Question
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.147.75.161     
References: <42595de6$1@newsgroups.borland.com> <42598b99$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4259d12d$1@newsgroups.borland.com>
Date: 10 Apr 2005 18:21:49 -0800
X-Trace: newsgroups.borland.com 1113182509 207.105.83.66 (10 Apr 2005 18:21:49 -0800)
Lines: 60
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail