diff --git a/deps/tquic b/deps/tquic index fd338f6..cc948f5 160000 --- a/deps/tquic +++ b/deps/tquic @@ -1 +1 @@ -Subproject commit fd338f6eab87646acb300f0544f13f883d87d2ef +Subproject commit cc948f529291fcbb0d5ab52b45be712d78da265b diff --git a/simple_client.c b/simple_client.c index e03bd8a..2541523 100644 --- a/simple_client.c +++ b/simple_client.c @@ -218,8 +218,8 @@ static void timeout_callback(EV_P_ ev_timer *w, int revents) { process_connections(client); } -static void debug_log(const unsigned char *line, void *argp) { - fprintf(stderr, "%s\n", line); +static void debug_log(const uint8_t *data, size_t data_len, void *argp) { + fwrite(data, sizeof(uint8_t), data_len, stderr); } static int create_socket(const char *host, const char *port, @@ -316,8 +316,9 @@ int main(int argc, char *argv[]) { ret = quic_endpoint_connect( client.quic_endpoint, (struct sockaddr *)&client.local_addr, client.local_addr_len, peer->ai_addr, peer->ai_addrlen, - NULL /* client_name*/, NULL /* session */, 0 /* session_len */, - NULL /* token */, 0 /* token_len */, NULL /*index*/); + NULL /* server_name */, NULL /* session */, 0 /* session_len */, + NULL /* token */, 0 /* token_len */, NULL /* config */, + NULL /* index */); if (ret < 0) { fprintf(stderr, "failed to connect to client: %d\n", ret); ret = -1; diff --git a/simple_server.c b/simple_server.c index 1abd365..ce8a0e3 100644 --- a/simple_server.c +++ b/simple_server.c @@ -260,8 +260,8 @@ static void timeout_callback(EV_P_ ev_timer *w, int revents) { ev_timer_again(loop, &server->timer); } -static void debug_log(const unsigned char *line, void *argp) { - fprintf(stderr, "%s\n", line); +static void debug_log(const uint8_t *data, size_t data_len, void *argp) { + fwrite(data, sizeof(uint8_t), data_len, stderr); } static int create_socket(const char *host, const char *port,