27 return socket.send(buf, n);
38 ssize_t ret =
socket.recv(buf, n, 0);
42 socket.last_recv_address(ip, port);
70 socket.set_blocking(blocking);
virtual bool close() override
virtual ssize_t write(const uint8_t *buf, uint16_t n) override
UDPDevice(const char *ip, uint16_t port, bool bcast, bool input)
virtual void set_blocking(bool blocking) override
virtual bool open() override
virtual void set_speed(uint32_t speed) override
virtual ssize_t read(uint8_t *buf, uint16_t n) override