indy TCPClient服务器没开的情况下要怎么快点返回
c++builder2010
try
{
idtcpclnt1->Port = 50612 ;
idtcpclnt1->Host = ip_addr ;
//idtcpclnt1->ConnectTimeout = 100 ;
idtcpclnt1->Connect() ;
if( idtcpclnt1->Connected() ) return(1) ;
else return(0) ;
}
catch(...)
{
ShowMessage("远程主机无响应!");
return(0) ;
}