473,804 Members | 2,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending info to a remote application

Requirements are as follows.
1- There is a server application running named srvrApp. When an event occurs
in the srvrAPP on the server, say InfoRcvd occurs, it must send information
to a Winform application CltApp, that should be running on a remote machine,
and CltApp must be able to return some information to the srvrApp.

Because there may be many clients running I will have to determine to which
machine I want to send the Information from the server, so I have to find
out if a machine is up and running, I think a ping can do this, and if the
application is running on the remote machine and also if the remote
application is currently free.

Question 1- How do you determine if cltApp is running on a particular remote
machine?
Question 2- How can you determine if cltApp is already being used in a
session between the server and the client?

My suspicion is that I will have to work with remoting but I haven't found
any discusssions on something similar to what I described above. Any help
would be appreciated.

Bob
Jun 20 '07 #1
1 1085

What I would do is this have the server listen on a given port (using
a winsock control) and when the clients are started they each use
winsock.connect to connect to the server.

Everytime the server gets another winsock connection it adds it to an
array / linkedlist of clients listening. These connections stay open
silently (there really isn't any overhead) and if a client drops or
the connection breaks the error handler removes that client from the
linked list.

And everytime the server gets new data it just iterates through the
collection or array, writing to each open socket.

That's pretty much it.

Jun 21 '07 #2

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

Similar topics

2
5783
by: Trond Hindenes | last post by:
Hello all, I am working on a application for analyzing data from a SQL Server Database using vb.net. THe application will mostly be web-based, although we migt use some Windows Forms for some of the components. Anyway, the data to be analyzed comes in Excel format, and needs to be converted into SQL Server in some way or another, And I'm not sure which is the best way. I find lots of info on how to pull data from SQL Server and present...
1
2313
by: Julio Delgado | last post by:
Hi, Again sorry for my ignorance first time interfacing to a remote server that is not a web service but it uses SOAP protocol to talk through a particular TCP port. I need to develop a VB.NET application to send a SOAP Message to this remote server. The only info they have given me is the server and port number and they have a "ping style" msg that the server will accept a msg and return back exactly what I send the msg has two...
15
4649
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
7
2688
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. So, I used a packet sniffer and saw the protocol (TCP), the port, IP address, etc. All is good. I tried 2 different versions of .NET code to duplicate the requests to the remote server. Again, I used the packet sniffer and my packets seemed...
3
9741
by: Daniel Clark | last post by:
I have a Windows command line based application that only shuts down cleanly if it sees "CTRL-C" on the console. I need to automate the running of this application, but still allow the user sitting at the machine to cancel the process cleanly if he/she needs to. In Unix this would be a tiny shell script that used "kill -15", but under Windows there does not seem to be an easy way to do this, at least that I can find. Below is a test...
15
2313
by: colin | last post by:
Hi, Im familiar with c,c++ etc, and Ive spent a week trying to write my first app in c# it works reasonably well, but im having difficulty getting to grips with inter thread signalling etc. I have read all about delegates, event handlers, Invoke methods etc, however they all seem to have undesribale side effects as I have tried them. The hardest part of the aplication is on exit, well I gues I could just
0
1532
by: sanjaygupta11 | last post by:
I am using httpwebrequest and httpwebresponse objects for sending data to remote appication by post and receiving the response from there. I am using this code in my windows application which will send a request to remote application. --------------------------------------------------------------------------------------------------------------- string lcUrl = "http://localhost/check/WebSite3/Default.aspx"; HttpWebRequest loHttp...
4
6109
by: srivineel | last post by:
Hello EveryBody I need to send sms from dotnet application to my mobile. For this task i have gone through the material on the net. Iam getting good info abt this. And in http://www.codeproject.com/cs/webservices/SendSmsThroughWS.asp This article i found source code for sending sms from asp.net site using a free webserice but this doesnt happens i posted a question asking author why this is not working there is no reply. I...
2
1678
by: sam | last post by:
Hi, I made asp.net website. I send e-mail via asp.net page to receiver but receiver cannot get email. I use smartertool Server SMTP. Sending and receiving to localhost is working. Sending emails to remote machines is NOT working. Please can someone tell the solution to solve this problem. cheers,
0
9705
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, 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...
0
9576
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,...
0
10323
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10311
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10074
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
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, 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...
0
6847
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();...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.