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.
The socket is created and bound, then the program receives data with recv(). The
Share
Use
recvfrominstead, it can return the source port and address