tags:

views:

37

answers:

1

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.

+4  A: 

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

Hasturkun
Thanks, thats it.
metafex