mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
* backport r32977 from trunk
* ext/socket: Make Socket documentation appear. Add documentation for Socket, TCPServer, SOCKSSocket. Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
28d8d87812
commit
82322e5d4b
16 changed files with 253 additions and 103 deletions
|
@ -288,14 +288,14 @@ ip_s_getaddress(VALUE obj, VALUE host)
|
|||
return rsock_make_ipaddr((struct sockaddr*)&addr);
|
||||
}
|
||||
|
||||
/*
|
||||
* Document-class: ::IPSocket < BasicSocket
|
||||
*
|
||||
* IPSocket is the super class of TCPSocket and UDPSocket.
|
||||
*/
|
||||
void
|
||||
rsock_init_ipsocket(void)
|
||||
{
|
||||
/*
|
||||
* Document-class: IPSocket < BasicSocket
|
||||
*
|
||||
* IPSocket is the super class of TCPSocket and UDPSocket.
|
||||
*/
|
||||
rb_cIPSocket = rb_define_class("IPSocket", rb_cBasicSocket);
|
||||
rb_define_method(rb_cIPSocket, "addr", ip_addr, -1);
|
||||
rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue