diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:12:27 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:12:27 +0000 |
commit | c02ce88762eeda44002b82f4176e9fdbc0dd7e3c (patch) | |
tree | 84ee65ed2aaf50af5b1f9ad4adb59c3f561aa95b /ext/socket/rubysocket.h | |
parent | 3e11901f1c03f7d3a88349644223f6c920f5f9e2 (diff) | |
download | ruby-c02ce88762eeda44002b82f4176e9fdbc0dd7e3c.tar.gz |
* ext/socket/rubysocket.h (sockopt_new): add family argument.
* ext/socket/option.c (sockopt_initialize): add vfamily argument.
(sockopt_new): add family argument and record it in the object.
(sockopt_family): new method.
(sockopt_s_int): add vfamily argument.
(sockopt_inspect): show family.
* ext/socket/basicsocket.c (bsock_getsockopt): check address family
using getsockname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/rubysocket.h')
-rw-r--r-- | ext/socket/rubysocket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index 2effdb3559..99028443e9 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -244,7 +244,7 @@ VALUE sock_listen(VALUE sock, VALUE log); VALUE s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len); VALUE s_accept_nonblock(VALUE klass, rb_io_t *fptr, struct sockaddr *sockaddr, socklen_t *len); -VALUE sockopt_new(int level, int optname, VALUE data); +VALUE sockopt_new(int family, int level, int optname, VALUE data); void Init_basicsocket(void); void Init_ipsocket(void); |