OpenDaVINCI  4.16.0
WIN32TCPFactoryWorker.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_WIN32IMPL_WIN32TCPFACTORY_H_
21 #define OPENDAVINCI_CORE_WRAPPER_WIN32IMPL_WIN32TCPFACTORY_H_
22 
23 #include <string>
24 
26 
30 
31 namespace odcore {
32  namespace wrapper {
33 
34  using namespace std;
35 
37  static odcore::io::tcp::TCPAcceptor* createTCPAcceptor(const uint32_t& port) {
38  return new WIN32Impl::WIN32TCPAcceptor(port);
39  };
40 
41  static odcore::io::tcp::TCPConnection* createTCPConnectionTo(const string& ip, const uint32_t& port) {
42  return new WIN32Impl::WIN32TCPConnection(ip, port);
43  };
44  };
45  }
46 }
47 
48 #endif /*OPENDAVINCI_CORE_WRAPPER_WIN32IMPL_WIN32TCPFACTORY_H_*/
Definition: WIN32TCPConnection.h:39
Definition: TCPAcceptor.h:31
Definition: WIN32TCPAcceptor.h:41
Definition: NetworkLibraryProducts.h:29
#define OPENDAVINCI_API
Definition: opendavinci.h:67
static odcore::io::tcp::TCPAcceptor * createTCPAcceptor(const uint32_t &port)
Definition: WIN32TCPFactoryWorker.h:37
Definition: TCPFactoryWorker.h:45
Definition: TCPConnection.h:40
static odcore::io::tcp::TCPConnection * createTCPConnectionTo(const string &ip, const uint32_t &port)
Definition: WIN32TCPFactoryWorker.h:41