标签:char str iad order padding div soc c++ multi
1
2 3 4 5 6 7 8 9 10 11 |
struct sockaddr_in servAddr;//linux
与 SOCKADDR_IN servAddr;//windows mreq.imr_multiaddr.s_addr//linux 与 mreq.imr_multiaddr.S_un.S_addr//windows int m = setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq));//linux 与 int m = setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char FAR *)&mreq, sizeof(mreq));//windows |
标签:char str iad order padding div soc c++ multi
原文地址:http://www.cnblogs.com/pokerface/p/7360457.html