MeVisLab Toolbox Reference
TlsConnectorSession.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 
4 #pragma once
5 
6 #include <asio/System.h>
8 #include <asio/TlsSocket.h>
9 
10 
11 namespace asio {
12 
37  {
39 
40  TlsConnectorSession(std::shared_ptr<Context> io_context, std::shared_ptr<TlsContext> tls_context, const std::string& host, const unsigned short port);
41 
42  public:
43 
44  void start();
45 
46  void stop();
47 
48  private:
49 
50  std::string host;
51  unsigned short port;
52 
53  std::shared_ptr<Context> io_context;
54  std::shared_ptr<TlsContext> tls_context;
55  };
56 
57 }
#define ASYNCHRONOUSIO_EXPORT
Definition: System.h:9
Class template facilitating the definition of asio::Socket generators.
A TCP connector session with TLS support asynchronously connecting to a TCP server.