10#include <sys/socket.h>
void ESPHOME_ALWAYS_INLINE wakeable_delay(uint32_t ms)
Host wakeable_delay uses select() over the registered fds — defined in wake_host.cpp.
void wake_loop_threadsafe()
Non-ISR: always inline.
bool ESPHOME_ALWAYS_INLINE wake_fd_ready(int fd)
bool wake_register_fd(int fd)
Register a socket file descriptor with the host select() loop.
void ESPHOME_ALWAYS_INLINE wake_drain_notifications()
void wake_unregister_fd(int fd)
Unregister a socket file descriptor. Not thread-safe — main loop only.
constexpr size_t WAKE_NOTIFY_DRAIN_BUFFER_SIZE
void wake_setup()
One-time setup of the loopback wake socket. Called from Application::setup().
void IRAM_ATTR wake_loop_any_context()
IRAM_ATTR entry point for ISR callers — defined in wake_esp8266.cpp.