Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tquic version to v0.8.1 #10

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deps/tquic
Submodule tquic updated 155 files
9 changes: 5 additions & 4 deletions simple_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions simple_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading