From 7568327834020f2ceed3ce2a823f23d0cc18cb8c Mon Sep 17 00:00:00 2001 From: Kent Ross Date: Thu, 20 Jul 2023 06:53:58 -0700 Subject: [PATCH] use SocketContextOptions type so HttpServer example will build again (#1397) --- examples/HttpServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/HttpServer.cpp b/examples/HttpServer.cpp index 6c72bdf..ecf1c73 100644 --- a/examples/HttpServer.cpp +++ b/examples/HttpServer.cpp @@ -28,7 +28,7 @@ int main(int argc, char **argv) { }; int port = 3000; - struct us_socket_context_options_t ssl_options = {}; + uWS::SocketContextOptions ssl_options = {}; while ((option = optparse_long(&options, longopts, nullptr)) != -1) { switch (option) { @@ -63,7 +63,7 @@ int main(int argc, char **argv) { AsyncFileStreamer asyncFileStreamer(root); /* Either serve over HTTP or HTTPS */ - struct us_socket_context_options_t empty_ssl_options = {}; + uWS::SocketContextOptions empty_ssl_options = {}; if (memcmp(&ssl_options, &empty_ssl_options, sizeof(empty_ssl_options))) { /* HTTPS */ uWS::SSLApp(ssl_options).get("/*", [&asyncFileStreamer](auto *res, auto *req) {