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
>
7
#include <
asio/SocketCreationSession.h
>
8
#include <
asio/TlsSocket.h
>
9
10
11
namespace
asio
{
12
36
class
ASYNCHRONOUSIO_EXPORT
TlsConnectorSession
:
public
SocketCreationSession
<TlsConnectorSession>
37
{
38
friend
class
SocketCreationSession
<
TlsConnectorSession
>;
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
}
SocketCreationSession.h
System.h
ASYNCHRONOUSIO_EXPORT
#define ASYNCHRONOUSIO_EXPORT
Definition
System.h:10
TlsSocket.h
asio::SocketCreationSession
Class template facilitating the definition of asio::Socket generators.
Definition
SocketCreationSession.h:24
asio::TlsConnectorSession
A TCP connector session with TLS support asynchronously connecting to a TCP server.
Definition
TlsConnectorSession.h:37
asio::TlsConnectorSession::stop
void stop()
asio::TlsConnectorSession::start
void start()
asio
Definition
AsynchronousExecution.h:15
FMEstable
ReleaseMeVis
Projects
AsynchronousIO
Sources
asio
TlsConnectorSession.h
Generated by
1.10.0