Broadcasting update information on the network

  • Thread starter Thread starter mphanke
  • Start date Start date
M

mphanke

Hi,

I have a master application which processes data extracted from eMails.

Then there a up to ten clients in the network. I have to find a way how
I can notify the clients to update after the database was changed, or if
there was a change on the master app.

I was thinking of using named pipes or a broadcast package, that is sent
to all clients.

Does anybody have a code snippet for me how to implement a named pipe
and / or a broadcast function and a reader for this packets. I couldn't
find any example yet, even MSDN makes this hard to do for me!


Thanks for your help in advance,

Martin
 
Hi,

Can you live with the client polling the server regularly? , this is the
easiest solution and may be all you need.

Cheerrs,
 
Ignacio said:
Hi,

Can you live with the client polling the server regularly? , this is the
easiest solution and may be all you need.

Cheerrs,
Sounds good to me! Do you have a snippet for me?? I'm really stuck on
this one!

Thanks,

Martin
 
Hi,

Snippet of what?
how to make a network connection?

What ou have to do is create a protocol, this protocol needs to has way for
the client to know when the server data changed, I have a similar approach
with a client working on a PPC and a windows service, the PPC client ask
for the "version" of a dataset ( "products info" ) if the server has a
different version number it download the data, the server change the
"version" each time it import it from an external system (SBT).

Take a look at gotdotnet.com they have examples of network programming there

Cheers,
 
Hi Martin,

Yes, you may let the client automatically communicate with server to query
the newer version when launching up.

You can get this done through TCP socket classes. When client application
lauching up, you should let it connect to the server to query if the new
version existed. If the newer version existed, the server should pass the
new version file url through socket to the client. Then, the client can use
WebClient.DownloadFile method to download the files.

So all needed is socket communication. For more information, please refer
to socket and tcp programming in MSDN.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Martin,

Does our reply make sense to you? Do you still have any concern on this
issue?

Please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top