serverspy/src/serverspy.cxx
//------------------------------------------------------------------------------
// This function will keep track of whether there is a server
// currently available.  Returns 0 for no, 1 for yes.  If given
// an argument, sets the server status to the argument.
//------------------------------------------------------------------------------
This function will keep track of whether there is a server
currently available.  Returns 0 for no, 1 for yes.  If given
an argument, sets the server status to the argument.
This function will keep track of whether there is a server currently available . Returns 0 for no 1 for yes . If given an argument sets the server status to the argument .
int server_is_ready(int setval=-1) {
    static int ready = 0;
    if (setval == 0 || setval == 1) ready = setval;
    return ready;
}
int server_is_ready ( int setval = -1 ) { static int ready = 0 ; if ( setval == 0 || setval == 1 ) ready = setval ; return ready ; }
This function will keep track of whether there is a server
currently available.
This function will keep track of whether there is a server currently available .