Go to the documentation of this file.
36 #ifndef RCDISCOVER_SOCKET_WINDOW_H
37 #define RCDISCOVER_SOCKET_WINDOW_H
83 ULONG dst_ip, uint16_t port,
84 std::string iface_name);
106 void bindImpl(
const sockaddr_in &addr);
112 void sendImpl(
const std::vector<uint8_t> &sendbuf);
131 #endif //RCDISCOVER_SOCKET_WINDOW_H
void enableNonBlockingImpl()
Enables non-blocking operation for this socket.
static std::vector< SocketWindows > createAndBindForAllInterfaces(uint16_t port)
Creates sockets for all interfaces and binds them to the respective interface.
SocketWindows(int domain, int type, int protocol, ULONG dst_ip, uint16_t port, std::string iface_name)
Constructor.
static const ULONG & getBroadcastAddr()
Returns the broadcast address.
static SocketWindows create(ULONG dst_ip, uint16_t port, std::string iface_name)
Create a new socket.
void enableBroadcastImpl()
Enables broadcast for this socket.
void sendImpl(const std::vector< uint8_t > &sendbuf)
Sends data.
const SOCKET & getHandleImpl() const
Returns the native socket handle.
void bindImpl(const sockaddr_in &addr)
Binds the socket to a specific sockaddr.
SOCKET SocketType
Type representing the native socket handle type.
CRTP class for platform specific socket implementation.
SocketWindows & operator=(SocketWindows &&other)
rcdiscover
Author(s): Heiko Hirschmueller
, Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56