Move to uSockets 0.3.5+ APIs

This commit is contained in:
Alex Hultman
2020-05-08 08:19:08 +02:00
parent cdda308bc2
commit 6512b5f2c0
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ void next_connection(struct us_socket_t *s) {
char buf[16];
sprintf(buf, "127.0.0.%d", address);
us_socket_context_connect(SSL, us_socket_context(SSL, s), buf, port, 0, sizeof(struct http_socket));
us_socket_context_connect(SSL, us_socket_context(SSL, s), buf, port, NULL, 0, sizeof(struct http_socket));
}
}
@@ -178,7 +178,7 @@ int main(int argc, char **argv) {
/* Start making HTTP connections */
for (int i = 0; i < BATCH_CONNECT; i++) {
us_socket_context_connect(SSL, http_context, host, port, 0, sizeof(struct http_socket));
us_socket_context_connect(SSL, http_context, host, port, NULL, 0, sizeof(struct http_socket));
}
us_loop_run(loop);