summaryrefslogtreecommitdiff
path: root/ext/socket/unixserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/unixserver.c')
-rw-r--r--ext/socket/unixserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/socket/unixserver.c b/ext/socket/unixserver.c
index fa41cba..e29e9cb 100644
--- a/ext/socket/unixserver.c
+++ b/ext/socket/unixserver.c
@@ -136,6 +136,8 @@ unix_sysaccept(VALUE sock)
#endif
/*
+ * Document-class: ::UNIXServer < UNIXSocket
+ *
* UNIXServer class
*/
void
@@ -147,5 +149,6 @@ 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", rsock_sock_listen, 1); /* in socket.c */
#endif
}