MiniBachelor
Connection.hpp
gehe zur Dokumentation dieser Datei
1 #ifndef _CONNECTION_HPP
2 #define _CONNECTION_HPP 1
3 
4 #include <thread>
5 #include <thrift/protocol/TBinaryProtocol.h>
6 #include <thrift/transport/TSocket.h>
7 #include <thrift/transport/TTransportUtils.h>
8 #include "../gen-cpp/Solver.h"
9 #include "Buffer.hpp"
10 using namespace apache::thrift;
11 using namespace apache::thrift::protocol;
12 using namespace apache::thrift::transport;
13 using namespace std;
14 
24 typedef boost::shared_ptr<TTransport> PtrTran;
26 typedef boost::shared_ptr<TProtocol> PtrProt;
27 
34 struct Connection {
38  SolverClient * remote;
39  thread * proxy;
40 };
41 
42 #endif
boost::shared_ptr< TTransport > PtrTran
Definition: Connection.hpp:24
Definition: Connection.hpp:34
SolverClient * remote
Definition: Connection.hpp:38
boost::shared_ptr< TProtocol > PtrProt
Durch ein typedef lassen sich lange Typen etwas verkürzen.
Definition: Connection.hpp:26
PtrTran socket
Definition: Connection.hpp:35
PtrTran transport
Definition: Connection.hpp:36
PtrProt protocol
Definition: Connection.hpp:37
thread * proxy
Definition: Connection.hpp:39