Search code examples
c#network-programmingclient-serverremoting

C# Server-Client Application Advise


i want to write a server-client application with C#. Server app must send a message or object to client and after this message must trigger some functions in client app. What class or tech should i use? System.Net TcpClient class or .NET Remoting or other technology? Where should i begin? I am beginner at network programming. Any advise will be helpful. Thanks for reading this question and your answers.


Solution

  • If you are specifically dealing with a publish/subscribe scenario, I would advise using ZeromMQ (clrzmq + libzmq). ZeroMQ is extremely easy to use and very fast. You'll find plenty of C# examples, corresponding to various scenarios on the ZeroMQ site. Depending on your specific needs, you can combine ZeroMQ and OpenPGM to do pgm (tcp) or epgm (udp) multicasting.