Go to the documentation of this file.
36 #ifndef RCDISCOVER_SOCKET_H
37 #define RCDISCOVER_SOCKET_H
51 template<
typename Derived>
57 return *
static_cast<Derived *
>(
this);
62 return *
static_cast<const Derived *
>(
this);
89 void bind(
const sockaddr_in& addr)
98 void send(
const std::vector<uint8_t>& sendbuf)
133 #endif //RCDISCOVER_SOCKET_H
const T & getHandle() const
Returns the native socket handle.
Socket(std::string iface_name)
const Derived & getDerived() const
void send(const std::vector< uint8_t > &sendbuf)
Sends data.
Socket & operator=(const Socket &)=delete
void enableNonBlocking()
Enables non-blocking operation for this socket.
const std::string & getIfaceName() const
Returns the interface name.
void enableBroadcast()
Enables broadcast for this socket.
void bind(const sockaddr_in &addr)
Binds the socket to an interface.
CRTP class for platform specific socket implementation.
rcdiscover
Author(s): Heiko Hirschmueller
, Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56