C 言語関数:getnameinfo サンプルコード

サンプルコードを検索した結果です。


TITLE : getnameinfo()
getnameinfo().......
http://beej.us/guide/bgnet/output/html/multipage/getnameinfoman.html


TITLE : getnameinfo()
int getnameinfo(const struct sockaddr *sa, socklen_t salen,.......
http://beej.us/guide/bgnet/output/html/multipage/getnameinfoman.html
TITLE : getnameinfo()
Finally, there are several flags you can pass, but here a a couple good ones. NI_NOFQDN will cause the host to only contain the host name, not the whole domain name. NI_NAMEREQD will cause the function to fail if the name cannot be found with a DNS lookup (if you don't specify this flag and the name can't be found, getnameinfo() will put a string version of the IP address in host instead.).......
http://beej.us/guide/bgnet/output/html/multipage/getnameinfoman.html
TITLE : getnameinfo()
getnameinfo(&sa, sizeof sa, host, sizeof host, service, sizeof service, 0);.......
http://beej.us/guide/bgnet/output/html/multipage/getnameinfoman.html
TITLE : getnameinfo() example problem
* getnameinfo() example problem.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
Thread: getnameinfo() example problem.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
getnameinfo() example problem.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
int res = getnameinfo((struct sockaddr*)&sa, sizeof(sa), node, sizeof(node), NULL, 0, NI_NUMERICSERV | NI_NUMERICHOST );.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
int res = getnameinfo((struct sockaddr*)&sa, sizeof(sa),.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
error = getnameinfo(res->ai_addr, res->ai_addrlen, hostname, NI_MAXHOST, NULL, 0, 0);.......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo() example problem
getnameinfo().......
http://cboard.cprogramming.com/c-programming/169902-getnameinfo-example-problem.html
TITLE : getnameinfo()
* getnameinfo().......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
Thread: getnameinfo().......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
getnameinfo().......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
as I understand, getnameinfo() is used for reverse lookup i.e. to get hostname from the IP address. So, what's wrong with the following code.......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
int res = getnameinfo((struct sockaddr*)&sa, sizeof(sa), node, sizeof(node), NULL, 0, 0);.......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
If I use getnameinfo() with the address obtained with getaddrinfo() for example with.......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
if (getnameinfo(aip->ai_addr, sizeof(struct sockaddr), buf, 512, NULL, 0, 0) == 0).......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : getnameinfo()
int res = getnameinfo((struct sockaddr*)&sa, sizeof(sa), node, sizeof(node), NULL, 0, 0);.......
http://cboard.cprogramming.com/linux-programming/94179-getnameinfo.html
TITLE : c++ - Socket connect realization: gethostbyname or getnameinfo - Code Review Stack Exchange
socket.cpp:(.text+0x374): warning: gethostbyname is obsolescent, use getnameinfo() instead........
http://codereview.stackexchange.com/questions/17863/socket-connect-realization-gethostbyname-or-getnameinfo
TITLE : c++ - Socket connect realization: gethostbyname or getnameinfo - Code Review Stack Exchange
if ( ( host = (hostent*) getnameinfo(.......
http://codereview.stackexchange.com/questions/17863/socket-connect-realization-gethostbyname-or-getnameinfo
TITLE : getnameinfo-sample_beta - Shammerism
// if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) {.......
http://d.hatena.ne.jp/shammer/20091128/1390899315
TITLE : getnameinfo-sample_beta - Shammerism
getnameinfo((struct sockaddr *)res->ai_addr,.......
http://d.hatena.ne.jp/shammer/20091128/1390899315
TITLE : getnameinfo-sample - Shammerism
// if (getnameinfo(sa, sa->sa_len, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV)) {.......
http://d.hatena.ne.jp/shammer/20091212/1390951663
TITLE : getnameinfo-sample - Shammerism
getnameinfo((struct sockaddr *)res->ai_addr,.......
http://d.hatena.ne.jp/shammer/20091212/1390951663
TITLE : getnameinfo(3) - Linux man page
getnameinfo(3) - Linux man page.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
int getnameinfo(const struct sockaddr *sa, socklen_t salen,.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
getnameinfo(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
The getnameinfo() function is the inverse of getaddrinfo(3): it converts a socket address to a corresponding host and service, in a protocol-independent manner. It combines the functionality of gethostbyaddr(3) and getservbyport(3), but unlike those functions, getnameinfo() is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies........
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
The sa argument is a pointer to a generic socket address structure (of type sockaddr_in or sockaddr_in6) of size salen that holds the input IP address and port number. The arguments host and serv are pointers to caller-allocated buffers (of size hostlen and servlen respectively) into which getnameinfo() places null-terminated strings containing the host and service names respectively........
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
The flags argument modifies the behavior of getnameinfo() as follows:.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
Extensions to getnameinfo() for Internationalized Domain Names.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
Starting with glibc 2.3.4, getnameinfo() has been extended to selectively allow hostnames to be transparently converted to and from the Internationalized Domain Name (IDN) format (see RFC 3490, Internationalizing Domain Names in Applications (IDNA)). Three new flags are defined:.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
getnameinfo() is provided in glibc since version 2.1........
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
if (getnameinfo(sa, len, hbuf, sizeof(hbuf), sbuf,.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
if (getnameinfo(sa, len, hbuf, sizeof(hbuf),.......
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
An example program using getnameinfo() can be found in getaddrinfo(3)........
http://linux.die.net/man/3/getnameinfo
TITLE : getnameinfo(3) - Linux man page
addrinfo(1), cnetdb(3), gethostbyname(3), getifaddrs(3), getipnodebyname(3), inet_addr(3), libbind-getaddrinfo(3), libval_shim(3), lwres_getnameinfo(3), name2addr(1), val_getaddrinfo(3).......
http://linux.die.net/man/3/getnameinfo
TITLE : Man page of GETNAMEINFO
int getnameinfo(const struct sockaddr *sa, socklen_t salen,.......
http://linuxjm.osdn.jp/html/LDP_man-pages/man3/getnameinfo.3.html
TITLE : Man page of GETNAMEINFO
getnameinfo(): _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _POSIX_SOURCE.......
http://linuxjm.osdn.jp/html/LDP_man-pages/man3/getnameinfo.3.html
Googleで検索

https://www.google.co.jp/#q=getnameinfo