mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'docs/update_docs_for_doc_751_v4.2' into 'release/v4.2'
docs: update the documents based on customer feedbacks (v4.2) See merge request espressif/esp-idf!13959
This commit is contained in:
commit
c106151cc6
@ -70,7 +70,7 @@ Example method to create a new ping session and register callbacks:
|
||||
struct addrinfo *res = NULL;
|
||||
memset(&hint, 0, sizeof(hint));
|
||||
memset(&target_addr, 0, sizeof(target_addr));
|
||||
getaddrinfo("www.espressif.com", NULL, &hint, &res) == 0);
|
||||
getaddrinfo("www.espressif.com", NULL, &hint, &res);
|
||||
struct in_addr addr4 = ((struct sockaddr_in *) (res->ai_addr))->sin_addr;
|
||||
inet_addr_to_ip4addr(ip_2_ip4(&target_addr), &addr4);
|
||||
freeaddrinfo(res);
|
||||
|
Loading…
Reference in New Issue
Block a user