vc下udp编程demo #pragma comment(lib,"ws2_32.lib") main() { SOCKET s; sockaddr_in addrto; WSADATA wsdata; BOOL bsocket; char *smsg="this is a test"