2022-01-01 23:50:23 +01:00

25 lines
709 B
C++

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