Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Sockets effective for talking to Service?

Tags:

c#

sockets

I have a large C#/WPF application. This application needs to collect data from other, "sub", applications that will be running on a Windows service - same network, different PC. Is sockets the best way to handle communications between the two (as opposed to remoting or something else)?

like image 326
Unknown Coder Avatar asked Dec 16 '22 21:12

Unknown Coder


2 Answers

WCF is the recommended approach for cross process communication in v3.5 and newer. Sockets and Named Pipes could/would work, but you'll find much better support via WCF.

like image 103
Jeff Avatar answered Dec 19 '22 11:12

Jeff


No way. Use WCF.

like image 44
Tamás Szelei Avatar answered Dec 19 '22 10:12

Tamás Szelei