You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
737 B

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