diff options
| author | Bernard Xiong <[email protected]> | 2017-11-13 21:09:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-11-13 21:09:19 +0800 |
| commit | 338835f932b06d0753e4ea53eb074a2771d7287c (patch) | |
| tree | 8c753b0af55a417ad083d566f06910a345b0bbe3 /components/net | |
| parent | 21cf0919b41f34ce55cb8e6c3364847f262adb12 (diff) | |
| parent | 7a19d911e9f010cc68e181bc0cc8a13b7535f25f (diff) | |
Merge pull request #992 from SummerGGift/1013_patch_2
[lwIP] add lwip_tryget_socket API in lwIP 1.4.1.
Diffstat (limited to 'components/net')
| -rw-r--r-- | components/net/lwip-1.4.1/src/api/sockets.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/components/net/lwip-1.4.1/src/api/sockets.c b/components/net/lwip-1.4.1/src/api/sockets.c index 359919e784..9f98bd012c 100644 --- a/components/net/lwip-1.4.1/src/api/sockets.c +++ b/components/net/lwip-1.4.1/src/api/sockets.c @@ -232,6 +232,19 @@ tryget_socket(int s) } /** + * Same as tryget_socket but a global routine. + * + * @param s externally used socket index + * @return struct lwip_sock for the socket or NULL if not found + */ +struct lwip_sock * +lwip_tryget_socket(int s) +{ + return tryget_socket(s); +} + + +/** * Allocate a new socket for a given netconn. * * @param newconn the netconn for which to allocate a socket |
