C++ Socket
文章平均质量分 76
C++ Socket
Umichan0621
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++Scoket
客户端#include <WinSock2.h>#include <Ws2tcpip.h>#pragma comment(lib, "ws2_32.lib")using namespace std;//端口const char DEFAULT_PORT[] = "5000";const int SEND_BUF_SIZE = 1024;////接送信息最大...原创 2020-02-08 20:03:00 · 327 阅读 · 0 评论 -
C++ UDP兼容IPv4与IPv6
IPv4和IPv6两套不同的API,应该默认使用IPv4,可选择IPv6为IPv4和IPv6绑定不同的socket,利用epoll和iocp的多路复用同时监听linux下 AF_INET6默认同时使用IPv4,表示为::ffff:x.x.x.x,https://tools.ietf.org/html/rfc3493#page-225.3 IPV6_V6ONLY option for AF_INET6 SocketsThis socket option restricts AF_INET6 sock原创 2021-05-02 22:01:04 · 993 阅读 · 0 评论
分享