mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f86c38212f
commit
94c668f1ab
1 changed files with 10 additions and 0 deletions
|
@ -3701,6 +3701,16 @@ sock_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock)
|
|||
/*
|
||||
* call-seq:
|
||||
* socket.accept => [client_socket, client_addrinfo]
|
||||
*
|
||||
* Accepts a next connection.
|
||||
* Returns a new Socket object and AddrInfo object.
|
||||
*
|
||||
* serv = Socket.new(:INET, :STREAM, 0)
|
||||
* serv.listen(5)
|
||||
* c = Socket.new(:INET, :STREAM, 0)
|
||||
* c.connect(serv.local_address)
|
||||
* p serv.accept #=> [#<Socket:fd 6>, #<AddrInfo: 127.0.0.1:48555 TCP>]
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
sock_accept(VALUE sock)
|
||||
|
|
Loading…
Reference in a new issue