Communication between .NET programs

I wanted to set up a simple data transfer between two C # applications, and I'm not sure if this is the best method. I previously used Java Sockets and ServerSockets to do this work, but I'm new to C #, so I came for advice :) This will be a two way communication with two clients exchanging strings or something similar.

+3
source share
4 answers

WCF (Windows Communication Foundation) is what you want.

+4
source

You have several options:

  • Using pipes
  • Using Sockets
  • WCF
+1
source

.NET Remoting.

.

Here is a good start, the first link is "Hello World!" remote application: http://msdn.microsoft.com/en-us/library/kwdt6w2k%28VS.71%29.aspx

0
source

I will also see NServiceBus . It is very simple to set up and provide you with a reliable messaging system. Any messages sent between applications (whether the target application is connected or not) are always delivered. The library uses MSMQ to facilitate communication.

0
source

Source: https://habr.com/ru/post/1739354/


All Articles