摘要:
服务器端: 1 #pragma comment(lib, "ws2_32.lib") 2 #include <iostream> 3 #include <Winsock2.h> 4 using namespace std; 5 SOCKET sockServer; 6 sockaddr_in addrServer; 7 sockaddr_in addrSend; 8 #define BUF_SIZE 1024 9 #define IP_ADDR "192.168.59.69" 10 #define PORT 5050 11 12 阅读全文