|
ESPHome 2026.3.0-dev
|
#include <lwip_sockets_impl.h>
Public Member Functions | |
| LwIPSocketImpl (int fd, bool monitor_loop=false) | |
| ~LwIPSocketImpl () | |
| LwIPSocketImpl (const LwIPSocketImpl &)=delete | |
| LwIPSocketImpl & | operator= (const LwIPSocketImpl &)=delete |
| int | connect (const struct sockaddr *addr, socklen_t addrlen) |
| std::unique_ptr< LwIPSocketImpl > | accept (struct sockaddr *addr, socklen_t *addrlen) |
| std::unique_ptr< LwIPSocketImpl > | accept_loop_monitored (struct sockaddr *addr, socklen_t *addrlen) |
| int | bind (const struct sockaddr *addr, socklen_t addrlen) |
| int | close () |
| int | shutdown (int how) |
| int | getpeername (struct sockaddr *addr, socklen_t *addrlen) |
| int | getsockname (struct sockaddr *addr, socklen_t *addrlen) |
| size_t | getpeername_to (std::span< char, SOCKADDR_STR_LEN > buf) |
| Format peer address into a fixed-size buffer (no heap allocation) | |
| size_t | getsockname_to (std::span< char, SOCKADDR_STR_LEN > buf) |
| Format local address into a fixed-size buffer (no heap allocation) | |
| int | getsockopt (int level, int optname, void *optval, socklen_t *optlen) |
| int | setsockopt (int level, int optname, const void *optval, socklen_t optlen) |
| int | listen (int backlog) |
| ssize_t | read (void *buf, size_t len) |
| ssize_t | recvfrom (void *buf, size_t len, sockaddr *addr, socklen_t *addr_len) |
| ssize_t | readv (const struct iovec *iov, int iovcnt) |
| ssize_t | write (const void *buf, size_t len) |
| ssize_t | send (const void *buf, size_t len, int flags) |
| ssize_t | writev (const struct iovec *iov, int iovcnt) |
| ssize_t | sendto (const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) |
| int | setblocking (bool blocking) |
| int | loop () |
| bool | ready () const |
| int | get_fd () const |
Protected Attributes | |
| int | fd_ {-1} |
| bool | closed_ {false} |
| bool | loop_monitored_ {false} |
Definition at line 14 of file lwip_sockets_impl.h.
| esphome::socket::LwIPSocketImpl::LwIPSocketImpl | ( | int | fd, |
| bool | monitor_loop = false ) |
Definition at line 12 of file lwip_sockets_impl.cpp.
| esphome::socket::LwIPSocketImpl::~LwIPSocketImpl | ( | ) |
Definition at line 21 of file lwip_sockets_impl.cpp.
|
delete |
|
inline |
Definition at line 22 of file lwip_sockets_impl.h.
|
inline |
Definition at line 28 of file lwip_sockets_impl.h.
|
inline |
Definition at line 35 of file lwip_sockets_impl.h.
| int esphome::socket::LwIPSocketImpl::close | ( | ) |
Definition at line 27 of file lwip_sockets_impl.cpp.
|
inline |
Definition at line 21 of file lwip_sockets_impl.h.
|
inline |
Definition at line 70 of file lwip_sockets_impl.h.
|
inline |
Definition at line 39 of file lwip_sockets_impl.h.
| size_t esphome::socket::LwIPSocketImpl::getpeername_to | ( | std::span< char, SOCKADDR_STR_LEN > | buf | ) |
Format peer address into a fixed-size buffer (no heap allocation)
Definition at line 53 of file lwip_sockets_impl.cpp.
|
inline |
Definition at line 40 of file lwip_sockets_impl.h.
| size_t esphome::socket::LwIPSocketImpl::getsockname_to | ( | std::span< char, SOCKADDR_STR_LEN > | buf | ) |
Format local address into a fixed-size buffer (no heap allocation)
Definition at line 63 of file lwip_sockets_impl.cpp.
|
inline |
Definition at line 47 of file lwip_sockets_impl.h.
|
inline |
Definition at line 53 of file lwip_sockets_impl.h.
|
inline |
Definition at line 66 of file lwip_sockets_impl.h.
|
delete |
|
inline |
Definition at line 54 of file lwip_sockets_impl.h.
Definition at line 58 of file lwip_sockets_impl.h.
| bool esphome::socket::LwIPSocketImpl::ready | ( | ) | const |
Definition at line 51 of file lwip_sockets_impl.cpp.
|
inline |
Definition at line 55 of file lwip_sockets_impl.h.
|
inline |
Definition at line 60 of file lwip_sockets_impl.h.
|
inline |
Definition at line 62 of file lwip_sockets_impl.h.
| int esphome::socket::LwIPSocketImpl::setblocking | ( | bool | blocking | ) |
Definition at line 40 of file lwip_sockets_impl.cpp.
|
inline |
Definition at line 50 of file lwip_sockets_impl.h.
|
inline |
Definition at line 37 of file lwip_sockets_impl.h.
|
inline |
Definition at line 59 of file lwip_sockets_impl.h.
Definition at line 61 of file lwip_sockets_impl.h.
|
protected |
Definition at line 74 of file lwip_sockets_impl.h.
|
protected |
Definition at line 73 of file lwip_sockets_impl.h.
|
protected |
Definition at line 75 of file lwip_sockets_impl.h.