来点好玩的 if (*(int*)argv[i]==*(int*)"CNT=") counter=atoi(argv[i++]+4); printf("Receive from %u.%u.%u.%u, port=%u, len=%u, Msg=%s\r\n",((BYTE*)&from.sin_addr.s_addr)[0],((BYTE*)&from.sin_addr.s_addr)[1],((BYTE*)&from.sin_addr.s_addr)[2],((BYTE*)&from.sin_addr.s_addr)[3],from.sin_port,rlen,buf);