• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ruby-104/ruby/ext/socket/

Lines Matching defs:addrinfo

27 		 const struct addrinfo *hints, struct addrinfo **res)
29 struct addrinfo tmp_hints;
38 MEMCPY(&tmp_hints, hints, struct addrinfo, 1);
59 const struct addrinfo *hints, struct addrinfo **res)
62 struct addrinfo *r;
105 const struct addrinfo *hints, struct addrinfo **res)
109 struct addrinfo tmp_hints;
113 MEMCPY(&tmp_hints, hints, struct addrinfo, 1);
126 struct addrinfo *r;
153 const struct addrinfo *hints;
154 struct addrinfo **res;
176 const struct addrinfo *hints,
177 struct addrinfo **res)
350 struct addrinfo*
351 rsock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints, int socktype_hack)
353 struct addrinfo* res = NULL;
378 struct addrinfo*
381 struct addrinfo hints;
383 MEMZERO(&hints, struct addrinfo, 1);
477 struct addrinfo* addr;
485 struct addrinfo* addr = arg->addr;
488 struct addrinfo *ai;
525 rsock_freeaddrinfo(struct addrinfo *addr)
532 rsock_make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, size_t))
572 "socket/addrinfo",
642 static struct addrinfo *
647 struct addrinfo hints, *res;
649 MEMZERO(&hints, struct addrinfo, 1);
668 static VALUE make_inspectname(VALUE node, VALUE service, struct addrinfo *res);
675 struct addrinfo *res = call_getaddrinfo(node, service, family, socktype, protocol, flags, 1);
693 make_inspectname(VALUE node, VALUE service, struct addrinfo *res)
745 struct addrinfo *res = call_getaddrinfo(node, service, family, socktype, protocol, flags, 0);
767 struct addrinfo *r;
770 struct addrinfo *res = call_getaddrinfo(node, service, family, socktype, protocol, flags, 0);
823 * Addrinfo.new(sockaddr) => addrinfo
824 * Addrinfo.new(sockaddr, family) => addrinfo
825 * Addrinfo.new(sockaddr, family, socktype) => addrinfo
826 * Addrinfo.new(sockaddr, family, socktype, protocol) => addrinfo
963 inspect_sockaddr(VALUE addrinfo, VALUE ret)
965 rb_addrinfo_t *rai = get_addrinfo(addrinfo);
1088 * addrinfo.inspect => string
1090 * returns a string which shows addrinfo in human-readable form.
1167 * addrinfo.inspect_sockaddr => string
1348 struct addrinfo *res;
1372 * addrinfo.afamily => integer
1388 * addrinfo.pfamily => integer
1404 * addrinfo.socktype => integer
1420 * addrinfo.protocol => integer
1436 * addrinfo.to_sockaddr => string
1437 * addrinfo.to_s => string
1457 * addrinfo.canonname => string or nil
1479 * addrinfo.ip? => true or false
1481 * returns true if addrinfo is internet (IPv4/IPv6) address.
1499 * addrinfo.ipv4? => true or false
1501 * returns true if addrinfo is IPv4 address.
1518 * addrinfo.ipv6? => true or false
1520 * returns true if addrinfo is IPv6 address.
1541 * addrinfo.unix? => true or false
1543 * returns true if addrinfo is UNIX address.
1564 * addrinfo.getnameinfo => [nodename, service]
1565 * addrinfo.getnameinfo(flags) => [nodename, service]
1568 * This converts struct sockaddr in addrinfo to textual representation.
1604 * addrinfo.ip_unpack => [addr, port]
1631 * addrinfo.ip_address => string
1656 * addrinfo.ip_port => port
1960 * addrinfo.unix_path => path
1996 * Addrinfo.getaddrinfo(nodename, service, family, socktype, protocol, flags) => [addrinfo, ...]
1997 * Addrinfo.getaddrinfo(nodename, service, family, socktype, protocol) => [addrinfo, ...]
1998 * Addrinfo.getaddrinfo(nodename, service, family, socktype) => [addrinfo, ...]
1999 * Addrinfo.getaddrinfo(nodename, service, family) => [addrinfo, ...]
2000 * Addrinfo.getaddrinfo(nodename, service) => [addrinfo, ...]
2002 * returns a list of addrinfo objects as an array.
2004 * This method converts nodename (hostname) and service (port) to addrinfo.
2005 * Since the conversion is not unique, the result is a list of addrinfo objects.
2012 * If so, Addrinfo.getaddrinfo returns addrinfo list appropriate for SOCK_STREAM.
2048 * Addrinfo.ip(host) => addrinfo
2050 * returns an addrinfo object for IP address.
2072 * Addrinfo.tcp(host, port) => addrinfo
2074 * returns an addrinfo object for TCP address.
2087 * Addrinfo.udp(host, port) => addrinfo
2089 * returns an addrinfo object for UDP address.
2104 * Addrinfo.unix(path [, socktype]) => addrinfo
2106 * returns an addrinfo object for UNIX socket address.
2212 * The Addrinfo class maps <tt>struct addrinfo</tt> to ruby. This