OpenDaVINCI  4.15.3
POSIXTCPFactoryWorker.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXTCPFACTORY_H_
21 #define OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXTCPFACTORY_H_
22 
24 
28 
29 namespace odcore {
30  namespace wrapper {
31 
32  using namespace std;
33 
35  static odcore::io::tcp::TCPAcceptor* createTCPAcceptor(const uint32_t& port) {
36  return new POSIX::POSIXTCPAcceptor(port);
37  };
38 
39  static odcore::io::tcp::TCPConnection* createTCPConnectionTo(const string& ip, const uint32_t& port) {
40  return new POSIX::POSIXTCPConnection(ip, port);
41  };
42  };
43  }
44 }
45 
46 #endif /*OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXTCPFACTORY_H_*/
Definition: TCPAcceptor.h:31
Definition: POSIXTCPConnection.h:39
static odcore::io::tcp::TCPConnection * createTCPConnectionTo(const string &ip, const uint32_t &port)
Definition: POSIXTCPFactoryWorker.h:39
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: NetworkLibraryProducts.h:28
static odcore::io::tcp::TCPAcceptor * createTCPAcceptor(const uint32_t &port)
Definition: POSIXTCPFactoryWorker.h:35
Definition: TCPFactoryWorker.h:45
Definition: TCPConnection.h:40
Definition: POSIXTCPAcceptor.h:40