mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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
This commit is contained in:
		
							parent
							
								
									3e11901f1c
								
							
						
					
					
						commit
						c02ce88762
					
				
					 4 changed files with 63 additions and 16 deletions
				
			
		|  | @ -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); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 akr
						akr