explicit basic_datagram_socket(const executor_type& ex) 和 template <typename ExecutionContext> |
创建&未打开udp socket |
basic_datagram_socket(const executor_type& ex, const protocol_type& protocol) 和 template <typename ExecutionContext> |
创建&打开 udp socket |
basic_datagram_socket(const executor_type& ex, const endpoint_type& endpoint) 和 template <typename ExecutionContext> |
创建&打开&绑定到自定local end_point的udp socket |
basic_datagram_socket(const executor_type& ex, 和 template <typename ExecutionContext> |
由 |
boost::asio序列17: basic_datagram_socket 和 basic_stream_socket
最新推荐文章于 2022-03-18 08:34:18 发布
本文介绍了Boost.Asio库中,basic_datagram_socket和basic_stream_socket的区别。虽然它们的调用方式和参数相似,但基本用途不同。basic_datagram_socket专门用于datagram(数据报)socket操作,而basic_stream_socket则适用于stream(流)socket相关功能。
摘要由CSDN通过智能技术生成