mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/trunk@32977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
39e112f89a
commit
1297942451
16 changed files with 251 additions and 103 deletions
|
@ -246,14 +246,15 @@ udp_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock)
|
|||
return rsock_s_recvfrom_nonblock(sock, argc, argv, RECV_IP);
|
||||
}
|
||||
|
||||
/*
|
||||
* Document-class: ::UDPSocket < IPSocket
|
||||
*
|
||||
* UDPSocket represents a UDP/IP socket.
|
||||
*/
|
||||
void
|
||||
rsock_init_udpsocket(void)
|
||||
{
|
||||
/*
|
||||
* Document-class: UDPSocket < IPSocket
|
||||
*
|
||||
* UDPSocket represents a UDP/IP socket.
|
||||
*
|
||||
*/
|
||||
rb_cUDPSocket = rb_define_class("UDPSocket", rb_cIPSocket);
|
||||
rb_define_method(rb_cUDPSocket, "initialize", udp_init, -1);
|
||||
rb_define_method(rb_cUDPSocket, "connect", udp_connect, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue