Just start using Visual C++.<br>I detect socket connectivity with Host using 'Select' before sending a data from client (act as Middleware) Client-M-Host, <br> <br> FD_ZERO( &f_set );<br> FD_SET( sock, &f_set );<br> if( (res = select( sock + 1, NULL, &f_set, <br> NULL, &timeout )) != 1 ) <br> return 1; // Socket Closed <br> return 0; // Socket still Connect<br><br>but the result is not good; it can't detect although remote host already closed the socket. Is there any other way to detect connectivity beetwen M-Host?<br>Without send the data first <br><br>Thanks