qaengine/src/ClientInterface.cxx
//------------------------------------------------------------------------------
// This function will wait any data on the client or admin socket
//------------------------------------------------------------------------------
This function will wait any data on the client or admin socket
This function will wait any data on the client or admin socket
void ClientInterface::WaitForAnyInput(void) {
    timeval timeout;
    timeout.tv_sec  = 1;
    timeout.tv_usec = 0;
    fd_set sock_set;
    int nfsd = 0;
#ifndef _WIN32
    nfsd = FD_SETSIZE;
#endif
    FD_ZERO(&sock_set);
	FD_SET(m_Socket, &sock_set);
	map<int,ClientInfo*>::iterator i;
	for(i=m_Clients.begin();i!=m_Clients.end();i++) {
	    FD_SET(i->first, &sock_set);
	}
#ifdef hp700
    select(nfsd,(int *)&sock_set,NULL,NULL,&timeout);
#else
    select(nfsd,&sock_set,NULL,NULL,&timeout);
#endif
}
void ClientInterface :: WaitForAnyInput ( void ) { timeval timeout ; timeout . tv_sec = 1 ; timeout . tv_usec = 0 ; fd_set sock_set ; int nfsd = 0 ; #ifndef _WIN32 nfsd = FD_SETSIZE ; #endif FD_ZERO ( & sock_set ) ; FD_SET ( m_Socket , & sock_set ) ; map < int , ClientInfo * > :: iterator i ; for ( i = m_Clients . begin ( ) ; i != m_Clients . end ( ) ; i ++ ) { FD_SET ( i -> first , & sock_set ) ; } #ifdef hp700 select ( nfsd , ( int * ) & sock_set , NULL , NULL , & timeout ) ; #else select ( nfsd , & sock_set , NULL , NULL , & timeout ) ; #endif }
This function will wait any data on the client or admin socket
This function will wait any data on the client or admin socket