MeVisLab Toolbox Reference
TlsAcceptorSession.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/TcpAcceptor.h
>
9
#include <
asio/TlsSocket.h
>
10
11
12
namespace
asio
{
13
39
class
ASYNCHRONOUSIO_EXPORT
TlsAcceptorSession :
public
SocketCreationSession
<TlsAcceptorSession>
40
{
41
friend
class
SocketCreationSession
<TlsAcceptorSession>;
42
43
TlsAcceptorSession(std::shared_ptr<Context> io_context, std::shared_ptr<TlsContext> tls_context,
const
std::string& address,
const
unsigned
short
port
);
44
45
public
:
46
47
unsigned
short
port
()
const
;
48
49
void
start
();
50
51
void
stop
();
52
53
private
:
54
55
void
accept();
56
57
std::shared_ptr<Context> io_context;
58
std::shared_ptr<TlsContext> tls_context;
59
60
TcpAcceptor
acceptor;
61
// TlsSocket candidate;
62
};
63
64
}
SocketCreationSession.h
System.h
ASYNCHRONOUSIO_EXPORT
#define ASYNCHRONOUSIO_EXPORT
Definition
System.h:10
TcpAcceptor.h
TlsSocket.h
asio::SocketCreationSession
Class template facilitating the definition of asio::Socket generators.
Definition
SocketCreationSession.h:24
asio::TcpAcceptor
A TCP acceptor listening on a given port and interface address.
Definition
TcpAcceptor.h:40
asio::TlsAcceptorSession::stop
void stop()
asio::TlsAcceptorSession::port
unsigned short port() const
asio::TlsAcceptorSession::start
void start()
asio
Definition
AsynchronousExecution.h:15
FMEstable
ReleaseMeVis
Projects
AsynchronousIO
Sources
asio
TlsAcceptorSession.h
Generated by
1.15.0