remote_connection.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 #ifndef __OPC_UA_BINARY_CHANNEL
00012 #define __OPC_UA_BINARY_CHANNEL
00013 
00014 #include <opc/ua/protocol/channel.h>
00015 
00016 #include <memory>
00017 #include <string>
00018 
00019 namespace OpcUa
00020 {
00021  
00022   class RemoteConnection : public IOChannel
00023   {
00024   public:
00025      virtual std::size_t Receive(char* data, std::size_t size) = 0;
00026      virtual void Send(const char* message, std::size_t size) = 0;
00027 
00028      virtual std::string GetHost() const = 0;
00029      virtual unsigned GetPort() const = 0;
00030   };
00031 
00032 
00033   std::unique_ptr<RemoteConnection> Connect(const std::string& host, unsigned port);
00034 
00035 } // namespace OpcUa
00036 
00037 #endif // __OPC_UA_BINARY_CHANNEL
00038 


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:24:56