(ixwebsocket) add WebSocketProxyServer, from ws. Still need to make the interface better.

This commit is contained in:
Benjamin Sergeant
2020-07-25 11:26:06 -07:00
parent 9a47ec1217
commit 0388459bd0
9 changed files with 146 additions and 185 deletions

View File

@ -0,0 +1,20 @@
/*
* IXWebSocketProxyServer.h
* Author: Benjamin Sergeant
* Copyright (c) 2019-2020 Machine Zone, Inc. All rights reserved.
*/
#pragma once
#include "IXSocketTLSOptions.h"
#include <cstdint>
#include <stddef.h>
#include <string>
namespace ix
{
int websocket_proxy_server_main(int port,
const std::string& hostname,
const ix::SocketTLSOptions& tlsOptions,
const std::string& remoteUrl,
bool verbose);
} // namespace ix