473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

network communication with .NET

We need runing one program on two computers, say two
computers runing a program on a network drive, we would
like one is a main program, the other one as secondary.
Is there any way the main one know the second one closing
or killed the second one from the main one?

More, is there a way the main program start the second
computer?

This is not limit to the two the comupter on one network.
If there is a simpler way, say the two comupter being
contacted with some cable.

Nov 15 '05 #1
1 1527
Hi Kathy,

Well your message is far from clear :) I will try to help you the best I
can
We need runing one program on two computers, say two
computers runing a program on a network drive, we would
like one is a main program, the other one as secondary.
Is there any way the main one know the second one closing
or killed the second one from the main one?
I assume that you mean that a program exist on a driver that is accesible to
the two computers and both of them execute the program , this is easily
doable, all you may have to do is set the correct permission.
regarding to the "role" of each running application, it depends of how you
assign the master role , you may then assign the secundary one to all others
instances of the program. this could be done in several ways, a very simple
one ( and not the best one ) is that as all the computers run the program
from the same location you can use a flag file for indicate the master,
let's say that the master instance when start executing create a file in the
form MASTER.COMPUTERNAME in this way all the others computers knows that the
instance running on COMPUTERNAME is the master.

a similar idea can be used to indicate to the master than the secundary is
closed, the secondary can create a file like SECONDARY.COMPUTERNAME and
delete it when it exit, the master instance can check for this file. to
close the secondary you could for example delete the file and this would be
used as a signal for the secondary program to close itself.
Please note that the above is only an idea, it's not the best idea by far.

This is not limit to the two the comupter on one network.
If there is a simpler way, say the two comupter being
contacted with some cable.

I have no idea of what you mean with this !!!!.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Grzegorz Kaczor | last post by:
Hello all, I've got a VERY strange network problem with Win2k Server and .NET. I've got one central server (hub) getting raw binary data (files) from many locations. Both server and clients...
1
by: Noel | last post by:
Hi, I am a tad confused about if there are any benefits from using asynchronous vs synchronous network communication. As my example, I have been writing a dns lookup stack with a network...
2
by: Leonardo D'Ippolito | last post by:
Hi! I have two .NET win apps that need to communicate on a TCP/IP network. 'App A' must ask 'app B' if it's allowed to do some task, and 'app B' must authorize or prohibit it. How can I do...
0
by: Grzegorz Kaczor | last post by:
Hello, I've got a VERY strange network problem with Win2k Server and .NET. I've got one central server (hub) getting raw binary data (files) from many locations. Both server and clients are...
2
by: Mohammad-Reza | last post by:
Hi I want to know is there any way to send structures instance to another computer through the network with sockets? When Send() method only accept byte, How can I send them to the network? ...
5
by: Lloyd Dupont | last post by:
I'm about to write a network aware application. Of course I intend to do UDP broadcasting to detect other app on my network. But I would like my application to be usable over the internet as well....
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
0
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, There are many technologies for communication across a network from Microsoft: 1/ .NET remoting 2/ Windows MSMQ 3/ WCF 4/ Service Broker (database) 5/ Notification Services (database)
1
by: 33223 | last post by:
Local Area Network (LAN) Both an EtherNet (wire) network and a wireless network are referred to as a Local Area Network (LAN). A wireless network does not require hubs, switchers, or routers to...
6
by: Tony | last post by:
Hello! This is the scenarion that we want to implement. We have a computer called A which register itself on a superviser server about it's existence so other computer can get the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.