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

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -