|
| std::unique_ptr< Socket > | esphome::socket::socket (int domain, int type, int protocol) |
| | Create a socket of the given domain, type and protocol.
|
| |
| std::unique_ptr< Socket > | esphome::socket::socket_ip (int type, int protocol) |
| | Create a socket in the newest available IP domain (IPv6 or IPv4) of the given type and protocol.
|
| |
| std::unique_ptr< Socket > | esphome::socket::socket_loop_monitored (int domain, int type, int protocol) |
| | Create a socket and monitor it for data in the main loop.
|
| |
| std::unique_ptr< Socket > | esphome::socket::socket_ip_loop_monitored (int type, int protocol) |
| |
| socklen_t | esphome::socket::set_sockaddr (struct sockaddr *addr, socklen_t addrlen, const char *ip_address, uint16_t port) |
| | Set a sockaddr to the specified address and port for the IP version used by socket_ip().
|
| |
| socklen_t | esphome::socket::set_sockaddr (struct sockaddr *addr, socklen_t addrlen, const std::string &ip_address, uint16_t port) |
| | Convenience overload for std::string (backward compatible).
|
| |
| socklen_t | esphome::socket::set_sockaddr_any (struct sockaddr *addr, socklen_t addrlen, uint16_t port) |
| | Set a sockaddr to the any address and specified port for the IP version used by socket_ip().
|
| |
| size_t | esphome::socket::format_sockaddr_to (const struct sockaddr *addr_ptr, socklen_t len, std::span< char, SOCKADDR_STR_LEN > buf) |
| | Format sockaddr into caller-provided buffer, returns length written (excluding null)
|
| |
| void | esphome::socket::socket_delay (uint32_t ms) |
| | Delay that can be woken early by socket activity.
|
| |
| void | esphome::socket::socket_wake () |
| | Called by lwip callbacks to signal socket activity and wake delay.
|
| |