mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (socket_s_list_ip_address): new method.
(sockaddr_obj): new function. * ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h, sys/sockio.h, net/if.h if available. (addrinfo_new): declared. * ext/socket/raddrinfo.c (addrinfo_new): exported. * ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h, net/if.h and getifaddrs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9ffca4659b
commit
bd3cdcf394
6 changed files with 281 additions and 1 deletions
|
@ -550,7 +550,7 @@ init_addrinfo(rb_addrinfo_t *rai, struct sockaddr *sa, size_t len,
|
|||
rai->inspectname = inspectname;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
VALUE
|
||||
addrinfo_new(struct sockaddr *addr, socklen_t len,
|
||||
int family, int socktype, int protocol,
|
||||
VALUE canonname, VALUE inspectname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue