mirror of
https://github.com/EndPositive/slipstream.git
synced 2025-10-08 12:25:04 +00:00
Optimize build configuration
This commit is contained in:
parent
29f3c50237
commit
9d309d48b1
4 changed files with 35 additions and 21 deletions
|
|
@ -3,7 +3,9 @@
|
|||
#include <picoquic.h>
|
||||
#include <picoquic_utils.h>
|
||||
#include <picosocks.h>
|
||||
#ifdef BUILD_LOGLIB
|
||||
#include <autoqlog.h>
|
||||
#endif
|
||||
#include <picoquic_internal.h>
|
||||
#include <pthread.h>
|
||||
#include <stdbool.h>
|
||||
|
|
@ -557,7 +559,7 @@ int picoquic_slipstream_client(int listen_port, char const* server_name, int ser
|
|||
picoquic_config_init(&config);
|
||||
config.nb_connections = 8;
|
||||
// config.log_file = "-";
|
||||
#ifndef DISABLE_DEBUG_PRINTF
|
||||
#ifndef BUILD_LOGLIB
|
||||
config.qlog_dir = SLIPSTREAM_QLOG_DIR;
|
||||
#endif
|
||||
config.server_port = server_port;
|
||||
|
|
@ -583,9 +585,11 @@ int picoquic_slipstream_client(int listen_port, char const* server_name, int ser
|
|||
}
|
||||
|
||||
picoquic_set_cookie_mode(quic, 2);
|
||||
#ifdef BUILD_LOGLIB
|
||||
picoquic_set_qlog(quic, config.qlog_dir);
|
||||
picoquic_set_key_log_file_from_env(quic);;
|
||||
debug_printf_push_stream(stderr);
|
||||
#endif
|
||||
picoquic_set_key_log_file_from_env(quic);
|
||||
|
||||
ret = slipstream_connect(server_name, server_port, quic, &cnx, &client_ctx);
|
||||
if (ret != 0) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,9 @@
|
|||
#include <picoquic.h>
|
||||
#include <picoquic_packet_loop.h>
|
||||
#include <picosocks.h>
|
||||
#ifdef BUILD_LOGLIB
|
||||
#include <autoqlog.h>
|
||||
#endif
|
||||
#include <pthread.h>
|
||||
#include <stdbool.h>
|
||||
#include <arpa/nameser.h>
|
||||
|
|
@ -525,9 +527,11 @@ int picoquic_slipstream_server(int server_port, const char* server_cert, const c
|
|||
}
|
||||
|
||||
picoquic_set_cookie_mode(quic, 2);
|
||||
#ifdef BUILD_LOGLIB
|
||||
picoquic_set_qlog(quic, config.qlog_dir);
|
||||
picoquic_set_key_log_file_from_env(quic);;
|
||||
debug_printf_push_stream(stderr);
|
||||
#endif
|
||||
picoquic_set_key_log_file_from_env(quic);
|
||||
|
||||
picoquic_packet_loop_param_t param = {0};
|
||||
param.local_af = AF_INET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue