int setupClients(int type, char *fname, int nThread) { /* * Send parameters to all slaves : * * We must send : * - the position of the test file * - the number of slaves for each client * - The kind of slaves : process or thread */ char message[512]; sprintf(message, "%d:%s:%d::", type, fname, nThread); writeToAllClients(message); return 0; }
int setupClients(int type, char *fname, int nThread) { /* * Envoi des parametres a tous les clients * * on doit envoyer 3 parametres : * - l'emplacement du fichier test * - Le nombre d'esclaves * - Le type de sous processus : thread ou process */ /* * Send parameters to all slaves : * * We must send : * - the position of the test file * - the number of slaves for each client * - The kind of slaves : process or thread */ char message[512]; sprintf(message,"%d:%s:%d::", type,fname,nThread); writeToAllClients(message); return 0; }
void serverSendNet() { writeToAllClients(message); }