Lines Matching refs:glob_opt
52 if(!glob_opt.statistics)
89 glob_opt.streams_opened = 0;
90 glob_opt.responses_pending = 0;
91 //glob_opt.global_memory = 0;
95 if(init_parse_uri(&glob_opt.uri_preg))
98 if(NULL != glob_opt.spdy2http_str)
100 ret = parse_uri(&glob_opt.uri_preg, glob_opt.spdy2http_str, &spdy2http_uri);
107 glob_opt.ssl_ctx = SSL_CTX_new(SSLv23_client_method());
108 if(glob_opt.ssl_ctx == NULL) {
112 spdy_ssl_init_ssl_ctx(glob_opt.ssl_ctx, &glob_opt.spdy_proto_version);
116 glob_opt.listen_port,
129 if(NULL == glob_opt.spdy_connection && NULL != glob_opt.spdy2http_str)
131 glob_opt.spdy_connection = spdy_connect(spdy2http_uri, spdy2http_uri->port, strcmp("https", spdy2http_uri->scheme)==0);
132 if(NULL == glob_opt.spdy_connection && glob_opt.only_proxy)
169 glob_opt.spdy_data_received = false;
186 if(glob_opt.spdy_data_received)
200 spdy_free_connection(glob_opt.spdy_connection);
202 connection = glob_opt.spdy_connections_head;
207 glob_opt.streams_opened -= connection_for_delete->streams_opened;
208 DLL_remove(glob_opt.spdy_connections_head, glob_opt.spdy_connections_tail, connection_for_delete);
214 deinit_parse_uri(&glob_opt.uri_preg);
216 SSL_CTX_free(glob_opt.ssl_ctx);
220 PRINT_INFO2("spdy streams: %i; http requests: %i", glob_opt.streams_opened, glob_opt.responses_pending);
221 //PRINT_INFO2("memory allocated %zu bytes", glob_opt.global_memory);
278 glob_opt.listen_port = atoi(optarg);
282 glob_opt.spdy2http_str = strdup(optarg);
283 if(NULL == glob_opt.spdy2http_str)
288 glob_opt.verbose = true;
292 glob_opt.only_proxy = true;
296 glob_opt.statistics = true;
313 0 == glob_opt.listen_port
314 || (glob_opt.only_proxy && NULL == glob_opt.spdy2http_str)