You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sockutls): Declare socketpair and gai_strerror via standard headers
Adding a reverse dependency to lwip and define macros, which
enable declarations of socketpair() and gai_strerror() in standard
heders (sys/socket.h and netdb.h)
|`ifaddrs()`| Retrieves interface addresses using `esp_netif`| IPv4 addresses only |
12
-
|`socketpair()`| Creates a pair of connected sockets using `lwIP` loopback stream sockets | IPv4 sockets only |
13
-
|`pipe()`| Wraps `socketpair()` to provide unidirectional pipe-like functionality | Uses bidirectional sockets in place of true pipes |
14
-
|`getnameinfo()`| Converts IP addresses to human-readable form using `lwIP`'s `inet_ntop()`| IPv4 only; supports `NI_NUMERICHOST` and `NI_NUMERICSERV` flags only |
15
-
|`gai_strerror()`| Returns error code as a string | Simple numeric string representation only |
16
-
|`gethostname()`| Returns lwip netif hostname | Not a system-wide hostname, but interface specific hostname |
|`ifaddrs()`| Retrieves interface addresses using `esp_netif`| IPv4 addresses only |`ifaddrs.h`|
12
+
|`socketpair()`*)| Creates a pair of connected sockets using `lwIP` loopback stream sockets | IPv4 sockets only |`socketpair.h`, `sys/socket.h`**)|
13
+
|`pipe()`*) | Wraps `socketpair()` to provide unidirectional pipe-like functionality | Uses bidirectional sockets in place of true pipes|`socketpair.h`, `unistd.h`***) |
14
+
|`getnameinfo()`| Converts IP addresses to human-readable form using `lwIP`'s `inet_ntop()`| IPv4 only; supports `NI_NUMERICHOST` and `NI_NUMERICSERV` flags only|`getnameinfo.h`, `netdb.h` in ESP-IDF |
15
+
|`gai_strerror()`| Returns error code as a string | Simple numeric string representation only |`gai_strerror.h`, `netdb.h`**)|
16
+
|`gethostname()`| Returns lwip netif hostname | Not a system-wide hostname, but interface specific hostname |`gethostname.h`, `unistd.h` in ESP-IDF|
17
17
18
-
**Note**: `socketpair()` and `pipe()` are built on top of `lwIP` TCP sockets, inheriting the same characteristics. For instance, the maximum transmit buffer size is based on the `TCP_SND_BUF` setting.
18
+
**Notes**:
19
+
20
+
-**`*)`**`socketpair()` and `pipe()` are built on top of `lwIP` TCP sockets, inheriting the same characteristics. For instance, the maximum transmit buffer size is based on the `TCP_SND_BUF` setting.
21
+
-**`**)`**`socketpair()` and `gai_strerror()` are declared in sock_utils header files, the declaration is propagated to ESP-IDF from v5.5 to the official header files. If you're using older IDF version, you need to manually pre-include related header files from the sock_utils public include directory.
22
+
-**`***)`**`pipe()` is declared in compiler's `sys/unistd.h`.
0 commit comments