c++ - Are EHOSTDOWN and EHOSTUNREACH fatal in connect()? -
how respond these errors when happen in connect()
(non-blocking)? want know whether should kill socket , create new one, or can wait time , try again existing socket , work (if remote host became online)?
you can try connecting again in these cases, since creating , binding socket again unnecessary work.
Comments
Post a Comment