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. 1 1538
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.COMPUTER NAME 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.COMPU TERNAME 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 are written in C#
The server is quite simple: two threads, one accepts new connections
and decides whether the client is authenticated to send data or not, and
the other thread serves already connected clients: performs a
Socket.Select and then...
|
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
communication class switchable between asynchronous and synchronous.
When I use asynchronous udp communication I find that if I want to
process a large amount of dns lookups I have one dns provider with
many state objects passing through (and a high...
|
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 this kind of communication in a secure way (protected
from sniffing)? It would be a very simple protocol. Question, and two
possible answers 'yes' or 'no'.
|
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 written in C#
The server is quite simple: two threads, one accepts new
connections and decides whether the client is authenticated to send data
or not, and the other thread serves already connected clients: performs
a Socket.Select and then gets...
|
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?
Thanks in advance
| |
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.
Between to end user computer.
Ideally if user could connect through MSN identity that would be perfect!
Is there a way to do that?
Some MSN server wrapper for .NET?
|
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 the network share.
It loads in VS2005 fine, and I can edit and save code changes etc, but when
I try and Build the solution, I get the following error...
An error occured loading a configuration file: Failed to start monitoring
|
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)
|
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 include additional users on the
network. Additional wireless users are supported just by being in the
immediate physical span of the network.
A wireless LAN (or Wi-Fi network) may be configured in two different
ways:
|
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 identification about computer A.
Now computer B wants to communicate with computer A so computer B ask the
superviser server about the identification for
computer A so B can start communicate with computer A.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |