OpenDaVINCI  4.16.0
TCPFactory.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_IO_TCP_TCPFACTORY_H_
21 #define OPENDAVINCI_CORE_IO_TCP_TCPFACTORY_H_
22 
23 #include <string>
24 
26 #include <memory>
27 
28 namespace odcore {
29  namespace io {
30  namespace tcp {
31 
32 class TCPAcceptor;
33 class TCPConnection;
34 
35  using namespace std;
36 
43  static std::shared_ptr<TCPAcceptor> createTCPAcceptor(const uint32_t &port);
44 
51  static std::shared_ptr<TCPConnection> createTCPConnectionTo(const string &ip, const uint32_t &port);
52  };
53 
54  }
55  }
56 }
57 
58 #endif /* OPENDAVINCI_CORE_IO_TCP_TCPFACTORY_H_ */
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: TCPFactory.h:37