摘要:
背景: 以下函数 1 bool Socket::getTcpInfo(struct tcp_info* tcpi) const 2 { 3 socklen_t len = sizeof(*tcpi); 4 memZero(tcpi, len); 5 return ::getsockopt(sockf 阅读全文
posted @ 2020-10-09 20:25
熊鑫xxx1x
阅读(1861)
评论(0)
推荐(0)
摘要:
背景: muduo网络库中的如下用法: 1 static_assert(sizeof(InetAddress) == sizeof(struct sockaddr_in6), 2 "InetAddress is same size as sockaddr_in6"); 3 static_assert 阅读全文
posted @ 2020-10-09 15:33
熊鑫xxx1x
阅读(308)
评论(0)
推荐(0)

浙公网安备 33010602011771号