[esp8266] Allow use of recvfrom for esphome sockets (#12342)

This commit is contained in:
Joakim Plate
2025-12-07 14:59:59 -06:00
committed by GitHub
parent acda5bcd5a
commit f015130f2e
3 changed files with 9 additions and 2 deletions
-2
View File
@@ -39,9 +39,7 @@ class Socket {
virtual int setsockopt(int level, int optname, const void *optval, socklen_t optlen) = 0;
virtual int listen(int backlog) = 0;
virtual ssize_t read(void *buf, size_t len) = 0;
#ifdef USE_SOCKET_IMPL_BSD_SOCKETS
virtual ssize_t recvfrom(void *buf, size_t len, sockaddr *addr, socklen_t *addr_len) = 0;
#endif
virtual ssize_t readv(const struct iovec *iov, int iovcnt) = 0;
virtual ssize_t write(const void *buf, size_t len) = 0;
virtual ssize_t writev(const struct iovec *iov, int iovcnt) = 0;