0

I got connectex/disconnectex working I tested they work but how do I reuse socket with them? I saw Reusing socket descriptor on connection failure but they say to loop the whole socket again and I don't want that (they say to go back to creating socket)? I just want to make a new socket once recv fails because host is offline (I'm doing a tcp client).

Thank you.

John Doe
  • 21
  • 6
  • I need to set flag to SO_REUSEADDR to reuse socket or just do it the way its linked in the link I posted? – John Doe Apr 28 '16 at 02:34
  • or I use my recv function like so: https://stackoverflow.com/questions/17226876/recv-call-hangs-after-remote-host-terminates ? – John Doe Apr 28 '16 at 03:06

0 Answers0