mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0647517bda
commit
062780c834
2 changed files with 12 additions and 5 deletions
|
@ -275,7 +275,13 @@ result = ERB.new(<<'EOS', nil, '%').result(binding)
|
|||
<%= INTERN_DEFS.map {|vardef, gen_hash, decl, func| vardef }.join("\n") %>
|
||||
|
||||
/*
|
||||
* Document-module: Socket::Constants
|
||||
* Document-module: ::Socket::Constants
|
||||
*
|
||||
* Socket::Constants provides socket related constants.
|
||||
* Following lists possible constants.
|
||||
* If underlying platform doesn't define a constant,
|
||||
* the corresponding Ruby constant is not defined.
|
||||
*
|
||||
*/
|
||||
static void
|
||||
init_constants(void)
|
||||
|
|
|
@ -1784,10 +1784,11 @@ socket_s_ip_address_list(VALUE self)
|
|||
*
|
||||
* Class +Socket+ provides access to the underlying operating system
|
||||
* socket implementations. It can be used to provide more operating system
|
||||
* specific functionality than the protocol-specific socket classes but at the
|
||||
* expense of greater complexity. In particular, the class handles addresses
|
||||
* using +struct+ sockaddr structures packed into Ruby strings, which can be
|
||||
* a joy to manipulate.
|
||||
* specific functionality than the protocol-specific socket classes.
|
||||
*
|
||||
* The constants defined under Socket::Constants are also defined under Socket.
|
||||
* For example, Socket::AF_INET is usable as well as Socket::Constants::AF_INET.
|
||||
* See Socket::Constants for the list of constants.
|
||||
*
|
||||
* === Exception Handling
|
||||
* Ruby's implementation of +Socket+ causes an exception to be raised
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue