예제 #1
0
파일: rprof.c 프로젝트: weixu8/rozofs
/*
 * exportd profiling
 */
static void connect_to_exportd_profil() {
    strcpy(profiler_client.ep.host, profiled_host);
    profiler_client.ep.port = profiling_port;
    if (ep_client_initialize(&profiler_client.ep) != 0)  {
        fprintf(stderr, "failed to connect to %s: %s\n", profiled_host, strerror(errno));
        exit(EXIT_FAILURE);
    }
}
예제 #2
0
/*
 * exportd profiling
 */
static void connect_to_exportd_profil() {
    strncpy(profiler_client.ep.host, profiled_host, ROZOFS_HOSTNAME_MAX);
    profiler_client.ep.port = profiling_port;
    profiler_client.ep.timeout = RPROF_TIMEOUT_REQUESTS;
    if (ep_client_initialize(&profiler_client.ep) != 0) {
        fprintf(stderr, "failed to connect to %s: %s\n", profiled_host, strerror(errno));
        exit(EXIT_FAILURE);
    }
}