add unix domain socket support for websocket (#1486)

This commit is contained in:
Young-Flash
2022-09-26 15:45:04 +02:00
committed by GitHub
parent 01a394cf5f
commit 88a3e9aa0e
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -445,6 +445,11 @@ public:
us_listen_socket_t *listen(const char *host, int port, int options) {
return us_socket_context_listen(SSL, getSocketContext(), host, port, options, sizeof(HttpResponseData<SSL>));
}
/* Listen to unix domain socket using this HttpContext */
us_listen_socket_t *listen(const char *path, int options) {
return us_socket_context_listen_unix(SSL, getSocketContext(), path, options, sizeof(HttpResponseData<SSL>));
}
};
}