introduce libwebsocket_is_final_fragment
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
9a50ba844f
commit
82c3d54c10
2 changed files with 9 additions and 0 deletions
|
@ -2717,3 +2717,9 @@ libwebsockets_broadcast(const struct libwebsocket_protocols *protocol,
|
|||
|
||||
return n;
|
||||
}
|
||||
|
||||
int
|
||||
libwebsocket_is_final_fragment(struct libwebsocket *wsi)
|
||||
{
|
||||
return wsi->final;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue