remote_connection.h
Go to the documentation of this file.
1 
11 #ifndef __OPC_UA_BINARY_CHANNEL
12 #define __OPC_UA_BINARY_CHANNEL
13 
14 #include <opc/common/logger.h>
16 
17 #include <memory>
18 #include <string>
19 
20 namespace OpcUa
21 {
22 
24 {
25 public:
26  virtual std::size_t Receive(char * data, std::size_t size) = 0;
27  virtual void Send(const char * message, std::size_t size) = 0;
28 
29  virtual std::string GetHost() const = 0;
30  virtual unsigned GetPort() const = 0;
31 };
32 
33 
34  std::unique_ptr<RemoteConnection> Connect(const std::string & host, unsigned port, const Common::Logger::SharedPtr & logger);
35 
36 } // namespace OpcUa
37 
38 #endif // __OPC_UA_BINARY_CHANNEL
39 
virtual unsigned GetPort() const =0
virtual std::size_t Receive(char *data, std::size_t size)=0
Receive data.
message
Definition: server.py:50
OPC UA Address space part. GNU LGPL.
virtual void Send(const char *message, std::size_t size)=0
virtual std::string GetHost() const =0
std::unique_ptr< RemoteConnection > Connect(const std::string &host, unsigned port, const Common::Logger::SharedPtr &logger)


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