开发者

How do I determine the remote endpoint a UDP packet originates from?

The socket is 开发者_高级运维created and bound, then the program receives data with recv(). The question is: How do I now determine from which host + port the packet originates so that I can send data back? Note: C and Winsock is used.


Use recvfrom instead, it can return the source port and address

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜