From 613d8daa7ce886365602d87458943975c411236a Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 10 May 2017 09:49:13 +0200 Subject: Move reading input stream to specialized socket class. We always read the same object so how to fill it is the job of specialized class not a generic method can do that. Change-Id: Ia262871cec6b7ed3341eb314d5ed6641b8da61e6 Signed-off-by: Romain Forlot --- CAN-binder/low-can-binding/utils/socketcan-raw.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CAN-binder/low-can-binding/utils/socketcan-raw.hpp') diff --git a/CAN-binder/low-can-binding/utils/socketcan-raw.hpp b/CAN-binder/low-can-binding/utils/socketcan-raw.hpp index e18ff1f..40a6e02 100644 --- a/CAN-binder/low-can-binding/utils/socketcan-raw.hpp +++ b/CAN-binder/low-can-binding/utils/socketcan-raw.hpp @@ -29,4 +29,6 @@ namespace utils private: int bind(const struct sockaddr* addr, socklen_t len); }; + + socketcan_raw_t& operator>>(socketcan_raw_t& s, can_message_t& cm); } -- cgit 1.2.3-korg