mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
eliminate-accessor-apis.patch
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
a2b0ab0e30
commit
ccbcef3931
2 changed files with 0 additions and 35 deletions
|
@ -79,11 +79,6 @@ extern int libwebsocket_create_server(int port,
|
|||
extern int
|
||||
libwebsocket_write(struct libwebsocket *, unsigned char *buf, size_t len,
|
||||
enum libwebsocket_write_protocol protocol);
|
||||
extern const char *
|
||||
libwebsocket_get_uri(struct libwebsocket *wsi);
|
||||
|
||||
extern const char *
|
||||
libwebsocket_get_protocol(struct libwebsocket *wsi);
|
||||
|
||||
extern int
|
||||
libwebsockets_serve_http_file(struct libwebsocket *wsi, const char * file,
|
||||
|
|
|
@ -33,36 +33,6 @@ const struct lws_tokens lws_tokens[WSI_TOKEN_COUNT] = {
|
|||
{ "\x0d\x0a", 2 },
|
||||
};
|
||||
|
||||
/**
|
||||
* libwebsocket_get_uri() - Return the URI path being requested
|
||||
* @wsi: Websocket instance
|
||||
*
|
||||
* The user code can find out the local path being opened from this
|
||||
* call, it's valid on HTTP or established websocket connections.
|
||||
* If the client opened the connection with "http://127.0.0.1/xyz/abc.d"
|
||||
* then this call will return a pointer to "/xyz/abc.d"
|
||||
*/
|
||||
|
||||
const char * libwebsocket_get_uri(struct libwebsocket *wsi)
|
||||
{
|
||||
return wsi->utf8_token[WSI_TOKEN_GET_URI].token;
|
||||
}
|
||||
|
||||
/**
|
||||
* libwebsocket_get_protocol() - Return the list of protocols being requested
|
||||
* @wsi: Websocket instance
|
||||
*
|
||||
* The user code can find out which protocols the client is asking to
|
||||
* work with by calling this. It may return NULL if there was no
|
||||
* protocol header specified.
|
||||
*/
|
||||
|
||||
const char * libwebsocket_get_protocol(struct libwebsocket *wsi)
|
||||
{
|
||||
return wsi->utf8_token[WSI_TOKEN_PROTOCOL].token;
|
||||
}
|
||||
|
||||
|
||||
int libwebsocket_parse(struct libwebsocket *wsi, unsigned char c)
|
||||
{
|
||||
int n;
|
||||
|
|
Loading…
Add table
Reference in a new issue