/******************************************************* Mosel Example Problems ====================== file findservers.c `````````````````` Find Mosel servers that are able to accept remote model runs This file only produces output on the local node, it does not start any remote runs. (c) 2013 Fair Isaac Corporation author: S. Heipcke, Jan. 2013 *******************************************************/ #include #include #ifdef _WIN32 #include #else #include #include #include #endif #include "xprd.h" #define M 20 /* Max. number of servers to be sought */ int main(int argv,char *args[]) { XPRDcontext xprd; XPRDmosel mosInst; struct in_addr Hosts[M]; char buf[200],*sysinfo; int hsize, i; xprd=XPRDinit(); /* Create an XPRD context */ hsize=XPRDfindxsrvs(xprd, 1,M, (unsigned int *)Hosts); printf("%d servers found.\n", hsize); for(i=0;i