qaengine/src/ClientInterface.cxx
//------------------------------------------------------------------------------
// This function will check if data available in the selected socket
//------------------------------------------------------------------------------
This function will check if data available in the selected socket
This function will check if data available in the selected socket
int ClientInterface::CheckSocket(int socket) {
    timeval timeout;
    timeout.tv_sec  = 0;
    timeout.tv_usec = 0;
    fd_set sock_set;
    int    nfsd = 0;
#ifndef _WIN32
    nfsd = FD_SETSIZE;
#endif
    FD_ZERO(&sock_set);
    FD_SET(socket, &sock_set);
#ifdef hp700
    if(select(nfsd,(int *)&sock_set,NULL,NULL,&timeout)>0) {
#else
    if(select(nfsd,&sock_set,NULL,NULL,&timeout)>0) {
#endif
        return 1;
    }
    return 0;
}
int ClientInterface :: CheckSocket ( int socket ) { timeval timeout ; timeout . tv_sec = 0 ; timeout . tv_usec = 0 ; fd_set sock_set ; int nfsd = 0 ; #ifndef _WIN32 nfsd = FD_SETSIZE ; #endif FD_ZERO ( & sock_set ) ; FD_SET ( socket , & sock_set ) ; #ifdef hp700 if ( select ( nfsd , ( int * ) & sock_set , NULL , NULL , & timeout ) > 0 ) { #else 
    if(select(nfsd,&sock_set,NULL,NULL,&timeout)>0) { #endif 
        return 1; } return 0 ; }
This function will check if data available in the selected socket
This function will check if data available in the selected socket