Skip to content

Instantly share code, notes, and snippets.

@not-fl3
Created July 20, 2019 13:37
Show Gist options
  • Save not-fl3/8d8d62ee5b535e4bbc55ad787eb88733 to your computer and use it in GitHub Desktop.
Save not-fl3/8d8d62ee5b535e4bbc55ad787eb88733 to your computer and use it in GitHub Desktop.
const server_porotocols = [_]lws_protocols{ http_protocol: {
var p: lws_protocols = init_zeroes(lws_protocols);
p.name = c"http-only";
p.callback = callback_http;
p.per_session_data_size = @sizeOf(usize);
break :http_protocol p;
}, init_zeroes(lws_protocols) };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment