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.

21 lines
500 B

4 months ago
  1. /*
  2. * IXSocketFactory.h
  3. * Author: Benjamin Sergeant
  4. * Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
  5. */
  6. #pragma once
  7. #include "IXSocketTLSOptions.h"
  8. #include <memory>
  9. #include <string>
  10. namespace ix
  11. {
  12. class Socket;
  13. std::unique_ptr<Socket> createSocket(bool tls,
  14. int fd,
  15. std::string& errorMsg,
  16. const SocketTLSOptions& tlsOptions);
  17. } // namespace ix