Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the alternatives to Socket Programming?

Tags:

c#

sockets

I was browsing around for programming troubleshooters, and I was wondering what the alternate would be for Socket Programming; if there is one.

like image 346
MrM Avatar asked Jan 23 '09 20:01

MrM


2 Answers

Assuming you have control over the protocol being used, you could go for a higher level of abstraction like .NET's Remoting or WCF.

like image 103
Serafina Brocious Avatar answered Nov 06 '22 15:11

Serafina Brocious


The question is rather vague and does not explain what MrM's issues with socket programming are, or what he is trying to accomplish.

An actual alternative to sockets would e.g. be (Win)Pcap, for which .net wrappers exist and that does not sit on top of the socket layer, as the other answers given so far.

There is also RDMA, which also does not use sockets, or much of the network stack at all, geared towards highest performance, but is not compatible with common IP networking.

Then there is the opposite approach: Getting high performance while still using standard sockets, by changing the underbelly with vendor-specific network stacks such as OpenOnload's. Many of these stacks however only run on the hardware of the specific vendor.

like image 23
Evgeniy Berezovsky Avatar answered Nov 06 '22 15:11

Evgeniy Berezovsky