Disable UDP + DHCP + DNS to reduce the amount of memory usage
Fork of Socket by
Diff: Socket.h
- Revision:
- 20:92677e486349
- Parent:
- 17:c5089d058eab
diff -r 434906b5b977 -r 92677e486349 Socket.h --- a/Socket.h Mon Aug 19 18:38:18 2013 +0300 +++ b/Socket.h Sun Feb 02 10:45:47 2014 +0000 @@ -21,6 +21,7 @@ #include "lwip/sockets.h" #include "lwip/netdb.h" +#if LWIP_DNS //DNS inline struct hostent *gethostbyname(const char *name) { return lwip_gethostbyname(name); @@ -29,6 +30,7 @@ inline int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent **result, int *h_errnop) { return lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop); } +#endif class TimeInterval;