getaddrinfo
getaddrinfo() function returns the wrong IP address
I am 开发者_运维技巧trying to resolve a URL\'s IP address using getaddrinfo(), but it always returns the wrong IP address, I have tried with several URL\'s and the result is same.any help wold be grea[详细]
2023-04-12 00:04 分类:问答Unix sockets with getaddrinfo() in C
Does anyone know if it\'s possible to use getaddrinfo with unix sockets in C (AF_UNIX). I\'ve tried a couple of things but I can\'t make it work.[详细]
2023-03-24 08:58 分类:问答getaddrinfo and IPv6
I\'m trying to understand what the getaddrinfo function returns : #include <stdlib.h> #include <sys/types.h>[详细]
2023-03-05 10:18 分类:问答getaddrinfo error: ai_socktype not supported
struct addrinfo *myAddrinfo, *curMyAddrinfo, hint; memset(&hint, 0, sizeof(struct addrinfo)); hint.ai_family = AF_INET;[详细]
2023-03-04 19:55 分类:问答Obtaining local IP address using getaddrinfo() C function?
I\'m trying to obtain my local (not the external) IP address using the getaddrinfo() function, but I saw the examples provided here, and they where too complex for my needs. Also saw other posts and m[详细]
2022-12-18 01:21 分类:问答Bogus IP Address from getaddrinfo & inet_ntop
I\'ve been using getaddrinfo for looking up socket addresses for basic socket commands. Recently, though, the addresses it returns to me are for bogus IP addresses, 开发者_运维技巧which I have found u[详细]
2022-12-14 18:38 分类:问答