getsockopt()/setsockopt() //获得sockfd指向的socket的属性 int getsockopt(int sockfd, int level, int optname, void *optval, socklen_t *optlen); //设置sockfd指向的socket的属性,成功返回0,失败返回-1设errno. int setsockopt(int sockfd, int level, int optname, const void *optval, so
[转]IP_ADD_MEMBERSHIP : 组播错误 的解决方法: http://www.cnitblog.com/dvb-dvb/archive/2012/10/15/aa.html by default live library includes winsock.h through windows.h instead of winsock2.h, but requires Winsock 2 in initializeWinsockIfNecessary(...) function.IP