简体   繁体   English

UNIX和Windows上的C ++套接字udp和tcp

[英]c++ socket udp and tcp on unix and windows

can you recommend me a good c++ library(or implementation) for udp socket (multicast) and tcp working on unix / windows system? 你能推荐我一个不错的C ++库(或实现)用于Unix / Windows系统上的udp套接字(多播)和tcp吗? tnx n

Boost.Asio Boost.Asio

Description 描述

Portable networking and other low-level I/O, including sockets, timers, hostname resolution, socket iostreams, serial ports, file descriptors and Windows HANDLEs. 便携式网络和其他底层I / O,包括套接字,计时器,主机名解析,套接字iostream,串行端口,文件描述符和Windows句柄。

There is also the Adaptive Communication Environment . 还有自适应通信环境 This SO question asks about the pros and cons of three different C++ networking libraries. 这个SO 问题询问了三个不同的C ++网络库的优缺点。

If you already depend on Boost, you might as well stick with boost::asio. 如果您已经依赖Boost,那么不妨继续使用boost :: asio。 ACE is quite a large library. ACE是一个很大的库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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