introduce libwebsocket_is_final_fragment
authorAndy Green <andy@warmcat.com>
Mon, 7 Mar 2011 21:16:31 +0000 (21:16 +0000)
committerAndy Green <andy@warmcat.com>
Mon, 7 Mar 2011 21:16:31 +0000 (21:16 +0000)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.c
lib/libwebsockets.h

index 0775fad..eb9cc85 100644 (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;
+}
index d51229d..bb3444f 100644 (file)
@@ -606,6 +606,9 @@ 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);
 
 extern size_t