mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 21:41:28 +00:00
netdb: improve documentation of LWIP_DNS_API_HOSTENT_STORAGE
This commit is contained in:
parent
8a900aa81f
commit
0056522cc9
@ -61,13 +61,18 @@ struct gethostbyname_r_helper {
|
|||||||
int h_errno;
|
int h_errno;
|
||||||
#endif /* LWIP_DNS_API_DECLARE_H_ERRNO */
|
#endif /* LWIP_DNS_API_DECLARE_H_ERRNO */
|
||||||
|
|
||||||
/** define "hostent" variables storage: 0 if we use a static (but unprotected)
|
/** LWIP_DNS_API_HOSTENT_STORAGE: if set to 0 (default), lwip_gethostbyname()
|
||||||
* set of variables for lwip_gethostbyname, 1 if we use a local storage */
|
* returns the same global variabe for all calls (in all threads).
|
||||||
|
* When set to 1, your port should provide a function
|
||||||
|
* struct hostent* sys_thread_hostent( struct hostent* h);
|
||||||
|
* which have to do a copy of "h" and return a pointer ont the "per-thread"
|
||||||
|
* copy.
|
||||||
|
*/
|
||||||
#ifndef LWIP_DNS_API_HOSTENT_STORAGE
|
#ifndef LWIP_DNS_API_HOSTENT_STORAGE
|
||||||
#define LWIP_DNS_API_HOSTENT_STORAGE 0
|
#define LWIP_DNS_API_HOSTENT_STORAGE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** define "hostent" variables storage */
|
/* define "hostent" variables storage */
|
||||||
#if LWIP_DNS_API_HOSTENT_STORAGE
|
#if LWIP_DNS_API_HOSTENT_STORAGE
|
||||||
#define HOSTENT_STORAGE
|
#define HOSTENT_STORAGE
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user