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>
8 #include <asio/TcpSocket.h>
9 
10 
11 namespace asio {
12 
33  {
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 }
#define ASYNCHRONOUSIO_EXPORT
Definition: System.h:9
Class template facilitating the definition of asio::Socket generators.
A TCP connector session asynchronously connecting to a TCP server.