diff options
Diffstat (limited to 'mmss/network.hpp')
-rw-r--r-- | mmss/network.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mmss/network.hpp b/mmss/network.hpp index ecd5caa..0beb6ae 100644 --- a/mmss/network.hpp +++ b/mmss/network.hpp @@ -34,12 +34,14 @@ namespace MMSS { -class network_t { +class network_t : public nocopy_t { private: std::string name; size_t mtu; + void enqueue(const void *data, size_t len, const iface_t *src_iface, const std::shared_ptr<iface_t> &dest_iface); + public: std::list<std::shared_ptr<iface_t>> interfaces; @@ -52,6 +54,10 @@ public: size_t get_mtu() const { return mtu; } + + void send(const void *data, size_t len, const iface_t *src_iface, const gmrf_addr_t *dest); + void send_bc(const void *data, size_t len, const iface_t *src_iface); + }; } |