mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-08 14:43:04 +08:00
add lwip_tryget_socket
This commit is contained in:
1 parent
0363220042
commit
7a19d911e9
1 file changed
+13
@@ -231,6 +231,19 @@ tryget_socket(int s)
|
||||
return &sockets[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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user