git-svn-id: https://rt-thread.googlecode.com/svn/trunk@420 bbd45198-f89e-11dd-88c7-29a3b14d5316
@@ -238,6 +238,14 @@ alloc_socket(struct netconn *newconn)
return -1;
}
+int lwip_get_error(int s)
+{
+ struct lwip_socket *sock;
+ sock = get_socket(s);
+
+ return sock->err;
+}
/* Below this, the well-known socket functions are implemented.
* Use google.com or opengroup.org to get a good description :-)
*