Go to the documentation of this file.
17 #ifndef SOCKET_CAN_COMMON_HPP_
18 #define SOCKET_CAN_COMMON_HPP_
20 #include <sys/select.h>
40 struct timeval
to_timeval(const std::chrono::nanoseconds timeout) noexcept;
42 fd_set
single_set(int32_t file_descriptor) noexcept;
48 #endif // SOCKET_CAN_COMMON_HPP_
fd_set single_set(int32_t file_descriptor) noexcept
Create a fd_set for use with select() that only contains the specified file descriptor.
Definition: socket_can_common.cpp:93
struct timeval to_timeval(const std::chrono::nanoseconds timeout) noexcept
Convert std::chrono duration to timeval (with microsecond resolution)
Definition: socket_can_common.cpp:81
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24
int32_t bind_can_socket(const std::string &interface)
Definition: socket_can_common.cpp:41