tcp_server.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <opc/common/interface.h>
14 #include <opc/common/logger.h>
17 
18 #include <memory>
19 
20 namespace OpcUa
21 {
22 namespace Server
23 {
25 {
26  unsigned short Port;
27 
29  : Port(0)
30  {
31  }
32 };
33 
35 {
36 public:
38 
39  TcpServer(const Common::Logger::SharedPtr & logger)
40  : Logger(logger)
41  {}
42 
43  virtual void Listen(const OpcUa::Server::TcpParameters & params, std::shared_ptr<OpcUa::Server::IncomingConnectionProcessor> processor) = 0;
44  virtual void StopListen(const OpcUa::Server::TcpParameters & params) = 0;
45 
46 protected:
47  Common::Logger::SharedPtr Logger;
48 };
49 
50 TcpServer::UniquePtr CreateTcpServer(const Common::Logger::SharedPtr & logger);
51 
52 } // namespace UaServer
53 } // namespace OpcUa
54 
Addon interface definition GNU LGPL.
OPC UA Address space part. GNU LGPL.
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
TcpServer::UniquePtr CreateTcpServer(const Common::Logger::SharedPtr &logger)
Definition: tcp_server.cpp:338
Common::Logger::SharedPtr Logger
Definition: tcp_server.h:47
const char Server[]
Definition: strings.h:121


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:08