1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/unixserver.c: [DOC] Document #accept

* ext/socket/tcpserver.c: ditto
* ext/socket/udpsocket.c: [DOC] Fix indentation of documentation
* ext/socket/socket.c: ditto
  Patches by David Rodríguez [ruby-core:56734] [Bug #8802]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-08-19 16:54:59 +00:00
parent 12ac5fe322
commit 77ca81e465
5 changed files with 27 additions and 17 deletions

View file

@ -1,3 +1,11 @@
Tue Aug 20 01:52:05 2013 Zachary Scott <e@zzak.io>
* ext/socket/unixserver.c: [DOC] Document #accept
* ext/socket/tcpserver.c: ditto
* ext/socket/udpsocket.c: [DOC] Fix indentation of documentation
* ext/socket/socket.c: ditto
Patches by David Rodríguez [ruby-core:56734] [Bug #8802]
Tue Aug 20 01:19:22 2013 Tanaka Akira <akr@fsij.org> Tue Aug 20 01:19:22 2013 Tanaka Akira <akr@fsij.org>
* configure.in: Define ac_cv_func_clock_gettime to yes for mingw*. * configure.in: Define ac_cv_func_clock_gettime to yes for mingw*.

View file

@ -43,6 +43,8 @@ tcp_svr_init(int argc, VALUE *argv, VALUE sock)
* call-seq: * call-seq:
* tcpserver.accept => tcpsocket * tcpserver.accept => tcpsocket
* *
* Accepts an incoming connection. It returns a new TCPSocket object.
*
* TCPServer.open("127.0.0.1", 14641) {|serv| * TCPServer.open("127.0.0.1", 14641) {|serv|
* s = serv.accept * s = serv.accept
* s.puts Time.now * s.puts Time.now

View file

@ -31,8 +31,8 @@ unix_svr_init(VALUE sock, VALUE path)
* call-seq: * call-seq:
* unixserver.accept => unixsocket * unixserver.accept => unixsocket
* *
* Accepts a new connection. * Accepts an incoming connection.
* It returns new UNIXSocket object. * It returns a new UNIXSocket object.
* *
* UNIXServer.open("/tmp/sock") {|serv| * UNIXServer.open("/tmp/sock") {|serv|
* UNIXSocket.open("/tmp/sock") {|c| * UNIXSocket.open("/tmp/sock") {|c|