From fa5985ed620c3cd4c7b9712b6b80a2e2c1a8ba31 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Jun 2020 18:32:11 +0200 Subject: Rename task to node everywhere. --- src/testclient.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/testclient.cc') diff --git a/src/testclient.cc b/src/testclient.cc index 6733978..3bd9d62 100644 --- a/src/testclient.cc +++ b/src/testclient.cc @@ -50,12 +50,12 @@ struct test enum demo_protocols { - PROTOCOL_TASK, + PROTOCOL_NODE, }; struct test *current_test = nullptr; -static int callback_task(struct lws_context *me, +static int callback_node(struct lws_context *me, struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len) @@ -120,7 +120,7 @@ static int callback_task(struct lws_context *me, static struct lws_protocols protocols[] = { - { "lws-task-protocol", callback_task, 0, }, + { "lws-node-protocol", callback_node, 0, }, { nullptr, nullptr, 0 } }; @@ -129,7 +129,7 @@ int client(const char *address, int port, struct test tests[]) current_test = &tests[0]; struct lws_context *context; - struct lws *wsi_task = nullptr; + struct lws *wsi_node = nullptr; int ietf_version = -1; // latest context = lws_create_context(CONTEXT_PORT_NO_LISTEN, nullptr, @@ -149,16 +149,16 @@ int client(const char *address, int port, struct test tests[]) { n = lws_service(context, 1000); - if(wsi_task == nullptr) + if(wsi_node == nullptr) { - wsi_task = lws_client_connect(context, address, port, + wsi_node = lws_client_connect(context, address, port, 0, "/", address, address, - protocols[PROTOCOL_TASK].name, + protocols[PROTOCOL_NODE].name, ietf_version); - if` (wsi_task == nullptr) + if` (wsi_node == nullptr) { - fprintf(stderr, "lws task connect failed\n"); + fprintf(stderr, "lws node connect failed\n"); return -1; } } -- cgit v1.2.3