summaryrefslogtreecommitdiff
path: root/ext/socket/tcpserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/tcpserver.c')
-rw-r--r--ext/socket/tcpserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/tcpserver.c b/ext/socket/tcpserver.c
index 59cd7dd..229c2b1 100644
--- a/ext/socket/tcpserver.c
+++ b/ext/socket/tcpserver.c
@@ -129,6 +129,8 @@ tcp_sysaccept(VALUE sock)
}
/*
+ * Document-class: ::TCPServer < TCPSocket
+ *
* TCPServer class
*/
void
@@ -139,4 +141,5 @@ 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", rsock_sock_listen, 1); /* in socket.c */
}