bselvan
bselvan

Reputation: 384

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.

Upvotes: 3

Views: 615

Answers (3)

David Brabant
David Brabant

Reputation: 43569

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.

Upvotes: 3

Ruan
Ruan

Reputation: 4293

Try figuring out how these chat client/server apps work. It Will get you thinking in the right direction.

Upvotes: 0

Viktor
Viktor

Reputation: 401

Simply use UdpClient class. Later you can move to TCP, if you need more reliability. UDP is simplest way to send messages across network.

Upvotes: 1

Related Questions