MeVisLab Toolbox Reference
TcpAcceptorSession.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/TcpSocket.h
>
10
11
12
namespace
asio
{
13
33
class
ASYNCHRONOUSIO_EXPORT
TcpAcceptorSession :
public
SocketCreationSession
<TcpAcceptorSession>
34
{
35
friend
class
SocketCreationSession
<TcpAcceptorSession>;
36
37
TcpAcceptorSession(std::shared_ptr<Context> context,
const
std::string& address,
const
unsigned
short
port
);
38
39
public
:
40
41
unsigned
short
port
()
const
;
42
43
void
start
();
44
45
void
stop
();
46
47
private
:
48
49
void
accept();
50
51
std::shared_ptr<Context> context;
52
53
TcpAcceptor
acceptor;
54
};
55
56
}
SocketCreationSession.h
System.h
ASYNCHRONOUSIO_EXPORT
#define ASYNCHRONOUSIO_EXPORT
Definition
System.h:10
TcpAcceptor.h
TcpSocket.h
asio::SocketCreationSession
Class template facilitating the definition of asio::Socket generators.
Definition
SocketCreationSession.h:24
asio::TcpAcceptorSession::stop
void stop()
asio::TcpAcceptorSession::start
void start()
asio::TcpAcceptorSession::port
unsigned short port() const
asio::TcpAcceptor
A TCP acceptor listening on a given port and interface address.
Definition
TcpAcceptor.h:40
asio
Definition
AsynchronousExecution.h:15
FMEstable
ReleaseMeVis
Projects
AsynchronousIO
Sources
asio
TcpAcceptorSession.h
Generated by
1.15.0