JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: App Shutdown Archived to Disk
I'm assuming that you mean: you have a server vb app with client vb apps running, you wish to terminate the server vb app, with notifying the client users of the closure.
Based on that, I can think of two things offhand:
hardest:
1) Winsock control for direct server-pc connections (of course not all places will allow this, and you'd either need a table of all connected users [or text file],or VB COM app also [which I normally don't do].
easiest
2) Put timers in the client apps, have a central db with a 2 tables, onethat only has one value ("closing", "not closing"), second with all current users (with a "close notified"). When you go to terminate the main vb app, change the "closing" table's value. Wait x minutes or until all values in the "connected" table say "notified".
If this would help, I can give more detailed info, but both are fairly extensive in length.
|