This commit is contained in:
Přemysl Eric Janouch 2018-10-16 04:05:42 +02:00
parent e9530f450e
commit 7cefdd496f
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -2218,21 +2218,21 @@ client_ws_close_cb (struct ws_handler *handler)
static void static void
client_ws_shutdown (struct client *client) client_ws_shutdown (struct client *client)
{ {
struct client_ws *self = (struct client_ws *) client; FIND_CONTAINER (self, client, struct client_ws, client);
ws_handler_close (&self->handler, WS_STATUS_GOING_AWAY, NULL, 0); ws_handler_close (&self->handler, WS_STATUS_GOING_AWAY, NULL, 0);
} }
static void static void
client_ws_destroy (struct client *client) client_ws_destroy (struct client *client)
{ {
struct client_ws *self = (struct client_ws *) client; FIND_CONTAINER (self, client, struct client_ws, client);
ws_handler_free (&self->handler); ws_handler_free (&self->handler);
} }
static bool static bool
client_ws_push (struct client *client, const void *data, size_t len) client_ws_push (struct client *client, const void *data, size_t len)
{ {
struct client_ws *self = (struct client_ws *) client; FIND_CONTAINER (self, client, struct client_ws, client);
return ws_handler_push (&self->handler, data, len); return ws_handler_push (&self->handler, data, len);
} }