X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Futils%2Fsocketcan-raw.hpp;h=02b3884c3e3c83456ec9f2b2b1f4afa56fa1eef6;hb=b1428786c5968319b6c963d236b78814958de6e3;hp=616724114c28a38097e79210e98d380dcb11858c;hpb=32e25cbca210a359b09768537b6f443fe90a3070;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/utils/socketcan-raw.hpp b/low-can-binding/utils/socketcan-raw.hpp index 61672411..02b3884c 100644 --- a/low-can-binding/utils/socketcan-raw.hpp +++ b/low-can-binding/utils/socketcan-raw.hpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015, 2016 ,2017 "IoT.bzh" + * Copyright (C) 2015, 2016 , 2017, 2018, 2019 "IoT\.bzh" * Author "Romain Forlot" * Author "Loïc Collignon" * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,7 +17,7 @@ #pragma once #include "socketcan.hpp" -#include "../can/can-message.hpp" +#include "../can/message/can-message.hpp" namespace utils { @@ -26,10 +26,8 @@ namespace utils public: using socketcan_t::socketcan_t; virtual int open(std::string device_name); - - private: - int bind(const struct sockaddr* addr, socklen_t len); + virtual std::shared_ptr read_message(); + virtual int write_message(message_t& cm); }; - socketcan_raw_t& operator>>(socketcan_raw_t& s, can_message_t& cm); }