Article View: borland.public.cppbuilder.nativeapi
Article #7487Re: How can my app talk to other instances, networked and local?
From: Bob Gonder
Date: Fri, 21 Jan 2005 23:02
Date: Fri, 21 Jan 2005 23:02
61 lines
3691 bytes
3691 bytes
Bob Gonder wrote: >Remy Lebeau (TeamB) wrote: > >>That is best accomplished using a centralized server that all instances are >>connected to. Issue the command to the server, and let it re-issue the >>command to all connected clients. Also possibly wait for a response to know >>that all instances acknowledged the command. The original issue was resolved with UDP, but a new issue has arrived. >A simple broadcast method would lessen the current problems, and >Gigabit will do away with the bandwidth problem before I can get C/S >stable. > >I will however, keep your recommend in mind should I change my mind... Well, I guess I'm changing my mind.... A customer wants to run my app over a VPN, but sucking files through that staw is too slow. Considering a 3-part approach. a) Simple Server Applet that sits and listens for UDP connect request from client. When request comes in, CreateProcess on second part (application) passing client IP. b) Application that relies on Client for screen and keyboard io (TCP xfer both ways.) c) Client Keyboard/Video/Mouse functions TCPd to application running on server. Barely more than a dumb terminal. (Though any GUI screens would need to implement on Client, but only a very few of those exist.) Advantage: Application is already modular in KVM functions, so wrapping them in TCP should be painless. And application would run as it does today. Disadvantage: Many copies of the application loaded into the server. Since all calculations would be on the server instead of the user, it's gotta slog the server. Is that a generally acceptable method? I figure you are going to tell me to combine a and b. That would be fine if I knew how...... Without rewritting the whole thing, I'd need a seperate copy of most of memory for each user/instance. I guess that would still be CreateProcess() then. If it was a service, would I then need to use CreateProcessAsUser() ? Can I just take a console application, put it in the startup folder, and call it a service, or are there special considerations? Since all instances would now be running on a single machine, would MapViewOfFile() reduce some of the memory/processing overhead? (Instance 1 reads/maps file A, then instance 2 would get it for free?)
Technical Details
Message-ID:
<l2v2v0l04s4no0laba6ip7c9j3pnmra42k@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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> <9df720h63pfep43vr0egtulemkqcegglrs@4ax.com> <4023d750$1@newsgroups.borland.com> <r2p720hsc034orsdq5972cs410bontkaod@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d12e7cf0a85501e9 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: How can my app talk to other instances, networked and local? Date: Fri, 21 Jan 2005 15:02:02 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <l2v2v0l04s4no0laba6ip7c9j3pnmra42k@4ax.com> References: <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> <9df720h63pfep43vr0egtulemkqcegglrs@4ax.com> <4023d750$1@newsgroups.borland.com> <r2p720hsc034orsdq5972cs410bontkaod@4ax.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: 69.69.91.123 X-Trace: newsgroups.borland.com 1106348518 69.69.91.123 (21 Jan 2005 15:01:58 -0800) Lines: 63 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail