Exemplo n.º 1
0
Arquivo: netsync.c Projeto: kraj/ltp
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;
}
Exemplo n.º 2
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;
}
Exemplo n.º 3
0
Arquivo: locktests.c Projeto: 1587/ltp
void serverSendNet()
{
	writeToAllClients(message);
}