mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 10:24:19 -07:00
Merge branch 'get_peername_stack_save_ram' into integration
This commit is contained in:
@@ -45,7 +45,7 @@ std::string format_sockaddr(const struct sockaddr_storage &storage) {
|
||||
return {};
|
||||
}
|
||||
|
||||
class BSDSocketImpl : public Socket {
|
||||
class BSDSocketImpl final : public Socket {
|
||||
public:
|
||||
BSDSocketImpl(int fd, bool monitor_loop = false) : fd_(fd) {
|
||||
#ifdef USE_SOCKET_SELECT_SUPPORT
|
||||
|
||||
@@ -602,7 +602,7 @@ class LWIPRawImpl : public Socket {
|
||||
|
||||
// Listening socket class - only allocates accept queue when needed (for bind+listen sockets)
|
||||
// This saves 16 bytes (12 bytes array + 1 byte count + 3 bytes padding) for regular connected sockets on ESP8266/RP2040
|
||||
class LWIPRawListenImpl : public LWIPRawImpl {
|
||||
class LWIPRawListenImpl final : public LWIPRawImpl {
|
||||
public:
|
||||
LWIPRawListenImpl(sa_family_t family, struct tcp_pcb *pcb) : LWIPRawImpl(family, pcb) {}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ std::string format_sockaddr(const struct sockaddr_storage &storage) {
|
||||
return {};
|
||||
}
|
||||
|
||||
class LwIPSocketImpl : public Socket {
|
||||
class LwIPSocketImpl final : public Socket {
|
||||
public:
|
||||
LwIPSocketImpl(int fd, bool monitor_loop = false) : fd_(fd) {
|
||||
#ifdef USE_SOCKET_SELECT_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user