当执行这个函数时:setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP,&mreq, sizeof(mreq));perror("error:");打印错误:setsockopt:no such device度娘原因:What does "IP_ADD_MEMBERSHIP: No such device"mean? It means that the tool is trying to use multicast but the networkinterface ...【阅读全文】
优化你的软件时,发觉"-fomit-frame-pointer"这个选项还是蛮有用的。GCC手册上面这么说:Don't keep the frame pointer in a register for functions that don't need one. This avoids the instructions to save, set up and restore frame pointers; it also makes an extra register available in many functions...【阅读全文】