High everyone, I started to write an opaque structure for storing context (boost::asio::io_service), can someone of the KIARA dev team review my first steps before I run in the wrong direction? Inline patch: ############### diff --git a/src/KIARA/Transport/Transport.hpp b/src/KIARA/Transport/Transport.hpp index d2c8a37..23cc8ef 100644 --- a/src/KIARA/Transport/Transport.hpp +++ b/src/KIARA/Transport/Transport.hpp @@ -268,6 +268,26 @@ private: static TransportMap transports_; }; +// Base class for the network context object +class NetworkContext +{ +public: + virtual ~NetworkContext(); +}; + +// Derived class for the network context object for Boost.Asio +class AsioNetworkContext : NetworkContext +{ +public: + explicit AsioNetworkContext(boost::asio::io_service&); + ~AsioNetworkContext(); + // Get a reference of the io_service + boost::asio::io_service& getIoService () const; + +private: + boost::shared_ptr<boost::asio::io_service> io_service_; +}; + } // namespace Transport } // namespace KIARA ############### Thanks for comments Mathias -- |_|0|_| Researcher (Network and Linux) |_|_|0| Institute of Information Technology |0|0|0| Zürich University of Applied Sciences http://cloudcomp.ch -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/miwi-middleware/attachments/20140514/23b3863a/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy