Cleanup
This commit is contained in:
parent
e9530f450e
commit
7cefdd496f
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user