summaryrefslogtreecommitdiff
path: root/src/testclient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/testclient.cc')
-rw-r--r--src/testclient.cc18
1 files changed, 9 insertions, 9 deletions
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;
}
}