Project homepage Mailing List  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"en-US,en;q\u003d0.5", "gen_ut":1614902677, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"", "f":3, "items": [ {"schema":"libjg2-1", "cid":"f8b2e192755c5ef293dd7242e2e894ab", "oid":{ "oid": "f64b0d1c52cad0120d1c5aea6ebf1216b5cbcc41", "alias": [ "refs/heads/master"]},"blobname": "include/libwebsockets/lws-ws-state.h", "blob": "/*\n * libwebsockets - small server side websockets and web server implementation\n *\n * Copyright (C) 2010 - 2019 Andy Green \\u003e\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \u0022Software\u0022), to\n * deal in the Software without restriction, including without limitation the\n * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n * sell copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \u0022AS IS\u0022, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n * IN THE SOFTWARE.\n */\n\n/** \u005cdefgroup wsstatus Websocket status APIs\n * ##Websocket connection status APIs\n *\n * These provide information about ws connection or message status\n */\n///@{\n/**\n * lws_send_pipe_choked() - tests if socket is writable or not\n * \u005cparam wsi: lws connection\n *\n * Allows you to check if you can write more on the socket\n */\nLWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT\nlws_send_pipe_choked(struct lws *wsi);\n\n/**\n * lws_is_final_fragment() - tests if last part of ws message\n *\n * \u005cparam wsi: lws connection\n */\nLWS_VISIBLE LWS_EXTERN int\nlws_is_final_fragment(struct lws *wsi);\n\n/**\n * lws_is_first_fragment() - tests if first part of ws message\n *\n * \u005cparam wsi: lws connection\n */\nLWS_VISIBLE LWS_EXTERN int\nlws_is_first_fragment(struct lws *wsi);\n\n/**\n * lws_get_reserved_bits() - access reserved bits of ws frame\n * \u005cparam wsi: lws connection\n */\nLWS_VISIBLE LWS_EXTERN unsigned char\nlws_get_reserved_bits(struct lws *wsi);\n\n/**\n * lws_partial_buffered() - find out if lws buffered the last write\n * \u005cparam wsi:\twebsocket connection to check\n *\n * Returns 1 if you cannot use lws_write because the last\n * write on this connection is still buffered, and can't be cleared without\n * returning to the service loop and waiting for the connection to be\n * writeable again.\n *\n * If you will try to do \u003e1 lws_write call inside a single\n * WRITEABLE callback, you must check this after every write and bail if\n * set, ask for a new writeable callback and continue writing from there.\n *\n * This is never set at the start of a writeable callback, but any write\n * may set it.\n */\nLWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT\nlws_partial_buffered(struct lws *wsi);\n\n/**\n * lws_frame_is_binary(): true if the current frame was sent in binary mode\n *\n * \u005cparam wsi: the connection we are inquiring about\n *\n * This is intended to be called from the LWS_CALLBACK_RECEIVE callback if\n * it's interested to see if the frame it's dealing with was sent in binary\n * mode.\n */\nLWS_VISIBLE LWS_EXTERN int LWS_WARN_UNUSED_RESULT\nlws_frame_is_binary(struct lws *wsi);\n///@}\n","s":{"c":1614902677,"u": 266}} ],"g": 1713,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}