зеркало из https://github.com/github/ruby.git
* ext/socket/socket.c (Init_socket): define TCPServer#listen and
UNIXServer#listen here for rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
840e6c70e8
Коммит
36dcff1cf5
|
@ -1,3 +1,8 @@
|
|||
Fri Feb 13 21:13:19 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c (Init_socket): define TCPServer#listen and
|
||||
UNIXServer#listen here for rdoc.
|
||||
|
||||
Fri Feb 13 20:59:48 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (extract_ipv6_pktinfo): set sa_len for 4.4BSD.
|
||||
|
|
|
@ -1787,4 +1787,10 @@ Init_socket()
|
|||
#endif
|
||||
|
||||
rb_define_singleton_method(rb_cSocket, "ip_address_list", socket_s_ip_address_list, 0);
|
||||
|
||||
/* defined here for rdoc */
|
||||
rb_define_method(rb_cTCPServer, "listen", sock_listen, 1);
|
||||
#ifdef HAVE_SYS_UN_H
|
||||
rb_define_method(rb_cUNIXServer, "listen", sock_listen, 1);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -137,5 +137,4 @@ Init_tcpserver(void)
|
|||
rb_define_method(rb_cTCPServer, "accept_nonblock", tcp_accept_nonblock, 0);
|
||||
rb_define_method(rb_cTCPServer, "sysaccept", tcp_sysaccept, 0);
|
||||
rb_define_method(rb_cTCPServer, "initialize", tcp_svr_init, -1);
|
||||
rb_define_method(rb_cTCPServer, "listen", sock_listen, 1);
|
||||
}
|
||||
|
|
|
@ -143,6 +143,5 @@ Init_unixserver(void)
|
|||
rb_define_method(rb_cUNIXServer, "accept", unix_accept, 0);
|
||||
rb_define_method(rb_cUNIXServer, "accept_nonblock", unix_accept_nonblock, 0);
|
||||
rb_define_method(rb_cUNIXServer, "sysaccept", unix_sysaccept, 0);
|
||||
rb_define_method(rb_cUNIXServer, "listen", sock_listen, 1);
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче