libs/StartExe/StartExe.cpp
//------------------------------------------------------------------------------------------------------
// 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 WaitSocket(int *sockets, int amount) {
timeval timeout;
timeout.tv_sec  = 8;
timeout.tv_usec = 0;
fd_set sock_set;
int    nfsd = 0;
#ifndef _WIN32
nfsd = FD_SETSIZE;
#endif
    FD_ZERO(&sock_set);
	for(int i=0;i<amount;i++) {
        FD_SET(*(sockets+i), &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 WaitSocket ( int * sockets , int amount ) { timeval timeout ; timeout . tv_sec = 8 ; timeout . tv_usec = 0 ; fd_set sock_set ; int nfsd = 0 ; #ifndef _WIN32 nfsd = FD_SETSIZE ; #endif FD_ZERO ( & sock_set ) ; for ( int i = 0 ; i < amount ; i ++ ) { FD_SET ( * ( sockets + i ) , & 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