1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

introduce libwebsocket_is_final_fragment

Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
Andy Green 2011-03-07 21:16:31 +00:00
parent 9a50ba844f
commit 82c3d54c10
2 changed files with 9 additions and 0 deletions

View file

@ -2717,3 +2717,9 @@ libwebsockets_broadcast(const struct libwebsocket_protocols *protocol,
return n;
}
int
libwebsocket_is_final_fragment(struct libwebsocket *wsi)
{
return wsi->final;
}

View file

@ -605,6 +605,9 @@ libwebsocket_callback_on_writable_all_protocol(
extern int
libwebsocket_get_socket_fd(struct libwebsocket *wsi);
extern int
libwebsocket_is_final_fragment(struct libwebsocket *wsi);
extern int
libwebsocket_rx_flow_control(struct libwebsocket *wsi, int enable);