🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can my app talk to other instances, networked and local?

#11517
From: Bob Gonder
Date: Fri, 06 Feb 2004 16:58
38 lines
3084 bytes
Remy Lebeau (TeamB) wrote:

>Well, what EXACTLY are you trying to accomplish?

One ConsoleApp.exe (no DLLs). (I can wrap it with a message loop if
need be).
User starts multiple copies so they can switch to different
parts/functions quickly.
Multiple users on network.

User 4 on her Instance 3 wants to restore data from backup (my own
backup code).  All instances need to be out of all files for the
restore to work. (It complains if a file is open)  Instead of User 4
running to the other end of the building to shut down the app that
someone left open when they went to lunch, I would like Instance 3 to
put out a message (to everyone) that they need to close all files.
Perhaps several types of message (prepare to close files, close files
now, prepare to exit app, exit app now)  Also note that User 4
sometimes forgets that she has files open on her other instances.
Also, what usually ends up happening is the user goes to _every_
computer in the building and makes sure the program isn't running
anywhere. And they always miss one the first time through.

Same for Update. All instances need to exit so the exe can be
replaced.

These are all "occasional" messages. The vast majority of the time,
the app will just be listening "just in case".   I'm envisioning some
other uses too, which might bump up the messaging to 2 or 3 a day.

So, I don't think message reliability is much of an issue, as the code
already handles user non-compliance. If the instance misses the
request, then the old sneaker net method still works. Or, the app
could re-request on non-compliance (would work for dropped, not
blocked messages)..

These are Not critical messages. They would just make the user's life
smoother.
Technical Details
Message-ID: <9df720h63pfep43vr0egtulemkqcegglrs@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <jeh0201cn87itns31e9776ge0s7l7gkqe6@4ax.com> <4020d650$1@newsgroups.borland.com> <40213288$1@newsgroups.borland.com> <2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com> <40228dd3$1@newsgroups.borland.com> <gsh520lcgru35gfubpf1q06s7fqkk7921p@4ax.com> <4022d78f$1@newsgroups.borland.com> <jfm5205nfcjq2t6ao1u672gsn2bqb5sa10@4ax.com> <40230400$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d12e7cf0a85501e9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-06 09:10:36 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How can my app talk to other instances, networked and local?
Date: Fri, 06 Feb 2004 08:58:09 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <9df720h63pfep43vr0egtulemkqcegglrs@4ax.com>
References: <jeh0201cn87itns31e9776ge0s7l7gkqe6@4ax.com> <4020d650$1@newsgroups.borland.com> <40213288$1@newsgroups.borland.com> <2f63205sghfq244hhc2obsdnk25jn6852r@4ax.com> <40228dd3$1@newsgroups.borland.com> <gsh520lcgru35gfubpf1q06s7fqkk7921p@4ax.com> <4022d78f$1@newsgroups.borland.com> <jfm5205nfcjq2t6ao1u672gsn2bqb5sa10@4ax.com> <40230400$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.31.165.194
X-Trace: newsgroups.borland.com 1076086691 67.31.165.194 (6 Feb 2004 08:58:11 -0800)
Lines: 40
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail