예제 #1
0
파일: init.c 프로젝트: michals/sx
sxc_client_t* server_init(const sxc_logger_t *custom_logger, const char *application, const char *logfile, int log_foreground, int argc, char *argv[])
{
    sxc_client_t *sx;
    log_init(&custom_logger, application ? application : argv[0], logfile, log_foreground);
    sx = sxc_init(src_version(), custom_logger, NULL);
    if (!sx) {
        CRIT("Cannot initialize SX");
        return NULL;
    }
    sxc_set_verbose(sx, 1);
    ERR_load_crypto_strings();
    if (application) {
        sxprocinit(argc, argv);
        sxsetproctitle(application);
    }
    return sx;
}
예제 #2
0
파일: fcgi-utils.c 프로젝트: s3v3ns/sx
void send_server_info(void) {
    last_flush = time(NULL);
    CGI_PRINTF("Server: Skylable SX\r\nSX-Cluster: %s (%s)%s\r\nSX-API-Version: %u\r\nVary: Accept-Encoding\r\n", src_version(), sx_hashfs_uuid(hashfs)->string, sx_hashfs_uses_secure_proto(hashfs) ? " ssl" : "", SRC_API_VERSION);
}
예제 #3
0
파일: fcgi-utils.c 프로젝트: michals/sx
void send_server_info(void) {
    last_flush = time(NULL);
    CGI_PRINTF("Server: Skylable SX\r\nSX-Cluster: %s (%s)\r\nVary: Accept-Encoding\r\n", src_version(), sx_hashfs_uuid(hashfs)->string);
}