473,799 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

notifing clients about server events

hi,

i need to notify clients about change that happened on server. there
will be about 2000 clients each will have my service running in it,
what would be the best way to notify only few of them them (not all)
about event on server.
i think that using .net events is not an option in this case and I do
not want to pool frorm client or leave open ports on client :)
my idea would be to host a remoting application in IIS (I asume that
it will take better care about so many sockets than written-by-me
simple application could - but maybe I am wrong) open socket to
server
from client, and server would go through all clients in a big array
of
open connections and compare their IP adresses with the ones which
should get notification. if connection is broken, client will simple
reopen it-this is not a problem.
my idea is to use:

WebClient.OpenR ead();
on client and wait for input from server as soon as something comes
to
client huraay-its an event
would it be better to use simple socket classes instead of webClient?
is in this case HttpKeepAlive better or worse option
is there a cleaner solution for this?
thanks
almir

Oct 16 '07 #1
1 1626
"almir" <ka*****@gmail. comwrote in message
news:11******** **************@ i38g2000prf.goo glegroups.com.. .
hi,

i need to notify clients about change that happened on server. there
will be about 2000 clients each will have my service running in it,
what would be the best way to notify only few of them them (not all)
about event on server.
I've never done this before, but in the .NET Remoting case, you won't have
to go through a big loop. I believe you can use normal .NET events. All the
clients listening for the event on a particular instance of the remoted
object will be notified when the server raises the event.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Oct 17 '07 #2

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

Similar topics

1
1812
by: Sanjit Suchak | last post by:
Hi, I am just learning about .net remoting and have managed to get it working. However, I now want to write a basic chat program. The problem I've got is getting the server to only fire events to some of the clients. eg. Client 1 and Client 2 are connected to the Server
2
1502
by: Jaime | last post by:
Hi all, I developed an ASP.NET Web Service project using Visual Studio (C#). I'm hosting it on IIS and Windows XP Pro. The web service simply sends back UTC time as a 'double' value at the client's request. The test client I wrote requests this UTC at a 2/sec rate and just displays it. The client works fine when I run up to 8 concurrent sessions of it, but starts failing after that - the client window does not display anything. But,...
4
2123
by: Frank | last post by:
Hello. In the early stages of developing a server application that will be required to send events to multiple client applications that will be running on different PC's. I'm wondering what the best technology for doing this is. At the moment, I'm looking at MSMQ. The server PC and client PC's will be running Windows 2000 (most likely in a Workgroup configuration). No, I can't upgrade the PC's to WinXP. I was thinking of writing the...
1
2980
by: Mary | last post by:
Dear All I have a webservice which has reference to the ATL COM, as we know that ATL COM of VC raises events i get those events in my web service of VB.net. But now the clients will have a web reference to this new web service, n i need to get the events raised from the web service to its clients. could not get a possible solution for it.
2
7129
by: jasonsgeiger | last post by:
From: "Factor" <jasonsgeiger@gmail.com> Newsgroups: microsoft.public.in.csharp Subject: Multiple Clients, One port Date: Wed, 19 Apr 2006 09:36:02 -0700 I'm been working with sockets for a short while now using a server program a former coworker started. The program listens on a port for incomming connections. When a valid connection is made (we send this init string into the socket from the clients) the server closes the socket so...
4
1754
by: baramuse | last post by:
Hi all, before starting I must say that I'm a remoting beginner so I certainly didn't assimilate all the tricks of remoting so please be kind ;) Now here is my interrogation: I'm working on a client/server architecture for a callcenter software. The server is the only one connected to the oracle database and all the different clients (operator/admin...) are "connected" to the server via remoting (it's the best I've found to...
1
2059
by: Karim Bernardet | last post by:
Hi In an client/server application made of singletons, the server can send unix commands which must be executed on the clients, then the clients return the outputs to the server. On the client, I have a threaded singleton actionsManager() which manages thoses actions (unix command). Those actions are also threaded with a timeout. I don't know a good way for the actionsManager() to wait for theses commands. I could use a while(1) loop...
2
1594
by: Israel | last post by:
It seems like there should be a way to pass events around like delegates but on the other hand they’re sort of special delegates because the only one allowed to invoke them is the owner of the event. What I want to do is create a generic event forwarder that forwards events from a server to a client. It will only subscribe to the server events once and only if there’s at least one client subscriber. Once the last client subscriber...
0
10257
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
10237
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
9077
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...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6808
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
5467
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...
1
4144
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
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
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...

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.