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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -