plugins: Remove J1939 condition in CMakeLists file
[apps/agl-service-can-low-level.git] / low-can-binding / utils / socketcan-raw.hpp
index 42e9874..02b3884 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015, 2016 ,2017 "IoT.bzh"
+ * Copyright (C) 2015, 2016 , 2017, 2018, 2019 "IoT\.bzh"
  * Author "Romain Forlot" <romain.forlot@iot.bzh>
  * Author "Loïc Collignon" <loic.collignon@iot.bzh>
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,11 +27,7 @@ namespace utils
                using socketcan_t::socketcan_t;
                virtual int open(std::string device_name);
                virtual std::shared_ptr<message_t> read_message();
-               virtual void write_message(std::shared_ptr<message_t> cm);
-               virtual void write_message(std::vector<std::shared_ptr<message_t>>& vobj);
-
-       private:
-               int bind(const struct sockaddr* addr, socklen_t len);
+               virtual int write_message(message_t& cm);
        };
 
 }