libuv test server update for deprecated apis
We have to set a good example everywhere now lws_get_internal_extensions() blows a warning / error Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
ba78cd36a6
commit
86224b5093
1 changed files with 14 additions and 3 deletions
|
@ -123,6 +123,19 @@ static struct lws_protocols protocols[] = {
|
||||||
{ NULL, NULL, 0, 0 } /* terminator */
|
{ NULL, NULL, 0, 0 } /* terminator */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct lws_extension exts[] = {
|
||||||
|
{
|
||||||
|
"permessage-deflate",
|
||||||
|
lws_extension_callback_pm_deflate,
|
||||||
|
"permessage-deflate; client_no_context_takeover; client_max_window_bits"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"deflate-frame",
|
||||||
|
lws_extension_callback_pm_deflate,
|
||||||
|
"deflate_frame"
|
||||||
|
},
|
||||||
|
{ NULL, NULL, NULL /* terminator */ }
|
||||||
|
};
|
||||||
|
|
||||||
/* this shows how to override the lws file operations. You don't need
|
/* this shows how to override the lws file operations. You don't need
|
||||||
* to do any of this unless you have a reason (eg, want to serve
|
* to do any of this unless you have a reason (eg, want to serve
|
||||||
|
@ -296,9 +309,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
info.iface = iface;
|
info.iface = iface;
|
||||||
info.protocols = protocols;
|
info.protocols = protocols;
|
||||||
#ifndef LWS_NO_EXTENSIONS
|
info.extensions = exts;
|
||||||
info.extensions = lws_get_internal_extensions();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
info.ssl_cert_filepath = NULL;
|
info.ssl_cert_filepath = NULL;
|
||||||
info.ssl_private_key_filepath = NULL;
|
info.ssl_private_key_filepath = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue