in reply to Re^2: How to reuse a Soket and how it will work
in thread How to reuse a Soket and how it will work
It is better you can call the function for creating a socket at once in the initial part. After that you can send and receive a message using that socket descriptor. If you want more please put your code.