2020-07-25 11:26:06 -07: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-13 21:20:42 -07:00
|
|
|
#include <map>
|
2020-07-25 11:26:06 -07:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
2020-08-13 21:20:42 -07:00
|
|
|
using RemoteUrlsMapping = std::map<std::string, std::string>;
|
|
|
|
|
2020-07-25 11:26:06 -07:00
|
|
|
int websocket_proxy_server_main(int port,
|
|
|
|
const std::string& hostname,
|
|
|
|
const ix::SocketTLSOptions& tlsOptions,
|
|
|
|
const std::string& remoteUrl,
|
2020-08-13 21:20:42 -07:00
|
|
|
const RemoteUrlsMapping& remoteUrlsMapping,
|
2020-07-25 11:26:06 -07:00
|
|
|
bool verbose);
|
|
|
|
} // namespace ix
|