Comunicating from server towards windows.forms clients

  • Thread starter Thread starter aaa
  • Start date Start date
A

aaa

Hi

I need to perform simple comunication towards my Windows.Forms clients.
Service running on server needs to contact/notify client apps running in
the network if certain event accurs. Upon this notification client would
contact the server (this is not within the scope of this question).

What is the easiest way to accomplish this? I persume not to include
TCP/UDP server on my clients :) Is it using .NET remoting?
 
Hi,

I would consider TCP/UDP as the first alternative. and always from client
to server, meaning that the client polls the server , this unless that you
need real time notification of the event from the server.
This simplify the server implementation A LOT cause otherwise it has to
keep references to the clients which is an overhead that you should try to
avoid when possible.

you could also use remoting for this.

why are you not wanting to use TCP ?

Cheers,
 
Ignacio said:
I would consider TCP/UDP as the first alternative. and always from client
to server, meaning that the client polls the server , this unless that you
need real time notification of the event from the server.

Unfortunately, classic client to server communication (which would be
the easiest solution) can not be achieved due to system design (and this
is not in my power to change).
This simplify the server implementation A LOT cause otherwise it has to
keep references to the clients which is an overhead that you should try to
avoid when possible.

Yes, I am aware of this ovarhead :)
you could also use remoting for this.

why are you not wanting to use TCP ?

It is not that I do not want to use TCP communication (matter of fact it
was the first solution that came to my mind), I just want to do it the
easiest way :)

The problem is : client application needs to be informed when certain
event happens on the server. Communication must be initialized from the
server, and in response client application would contact the server for
additional info and then refresh user's screen. Client is standard
WinForms application running on users desktop PC (list of all client IP
addresses is available).
 
Back
Top