#define _WINSOCK_DEPRECATED_NO_WARNINGS#define WIN32_LEAN_AND_MEAN#include #include #pragma comment(lib, "ws2_32")#define LOCALPORT 2000#define BUFSIZE 512void errDisplay(const char* msg) { LPVOID IpMsgBuf; FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, WSAGetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&IpMsgBuf, 0, NULL); pri..