1/*
2 * IXWebSocketProxyServer.h
3 * Author: Benjamin Sergeant
4 * Copyright (c) 2019-2020 Machine Zone, Inc. All rights reserved.
5 */
6#pragma once
7
8#include "IXSocketTLSOptions.h"
9#include <cstdint>
10#include <map>
11#include <stddef.h>
12#include <string>
13
14namespace ix
15{
16 using RemoteUrlsMapping = std::map<std::string, std::string>;
17
18 int websocket_proxy_server_main(int port,
19 const std::string& hostname,
20 const ix::SocketTLSOptions& tlsOptions,
21 const std::string& remoteUrl,
22 const RemoteUrlsMapping& remoteUrlsMapping,
23 bool verbose);
24} // namespace ix
25