Hello,

I would like to reuse the udp listening port for sending udp message so the
remote node can obtain the port for reply message.

I setup:
BOOL bReuseaddr = TRUE;
socket.SetSockOpt(SOL_SOCKET, SO_REUSEADDR, (const char*)&bReuseaddr,
sizeof(bReuseaddr));

however, the listening thread does not receive udp sometimes. If I bind the
sending socket to other port number the problem gone.

Do you know why it happens and should I tell the remote node for the reply
port?

Thanks,
Hiusing