简体   繁体   中英

What are the alternatives to Socket Programming?

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

假设您可以控制正在使用的协议,那么您可以采用更高级别的抽象,例如.NET的Remoting或WCF。

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 eg 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.

TCPClient and UDPClient abstract you from the underlying sockets to some degree. They're nice to work with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM