实验报告,自己刚做完的。 char *host = "172.19.52.134"; /* host to use if none supplied ,这里换目标IP*/ char *service = "445"; /* default service name 端口名字 */ SOCKET s; /* socket descriptor */ int errcnt = 0; /* error count */ WSADATA wsadata; switch (argc) {