MeVisLab Toolbox Reference
TcpConnectorSession.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/TcpSocket.h
>
9
10
11
namespace
asio
{
12
32
class
ASYNCHRONOUSIO_EXPORT
TcpConnectorSession
:
public
SocketCreationSession
<TcpConnectorSession>
33
{
34
friend
class
SocketCreationSession
<
TcpConnectorSession
>;
35
36
TcpConnectorSession
(std::shared_ptr<Context> context,
const
std::string& host,
const
unsigned
short
port);
37
38
public
:
39
40
void
start
();
41
42
void
stop
();
43
44
private
:
45
46
std::shared_ptr<Context> context;
47
48
std::string host;
49
unsigned
short
port;
50
};
51
52
}
SocketCreationSession.h
System.h
ASYNCHRONOUSIO_EXPORT
#define ASYNCHRONOUSIO_EXPORT
Definition
System.h:10
TcpSocket.h
asio::SocketCreationSession
Class template facilitating the definition of asio::Socket generators.
Definition
SocketCreationSession.h:24
asio::TcpConnectorSession
A TCP connector session asynchronously connecting to a TCP server.
Definition
TcpConnectorSession.h:33
asio::TcpConnectorSession::stop
void stop()
asio::TcpConnectorSession::start
void start()
asio
Definition
AsynchronousExecution.h:15
FMEstable
ReleaseMeVis
Projects
AsynchronousIO
Sources
asio
TcpConnectorSession.h
Generated by
1.10.0