//-------------仅提建议-------------------------//
//-------------见笑了-------------------------//
用 recvfrom
int recvfrom(
SOCKET s,
char FAR* buf,
int len,
int flags,
struct sockaddr FAR *from,
int FAR *fromlen
);
The recvfrom function reads incoming data on both connected and unconnected sockets and captures the address from which the data was sent.