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