diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-08 13:50:55 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-08 13:56:14 -0800 |
commit | d8616b605ad4d83b69e2679e1c210e476cc18e00 (patch) | |
tree | 6e99e63e70ee64493378c6c667819f5ca6449fa6 /ext/kgio/connect.c | |
parent | 3f6bffb4c4297df48a69d146243fbe5ba8040cb5 (diff) | |
download | kgio-d8616b605ad4d83b69e2679e1c210e476cc18e00.tar.gz |
Whee!
Diffstat (limited to 'ext/kgio/connect.c')
-rw-r--r-- | ext/kgio/connect.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/kgio/connect.c b/ext/kgio/connect.c index 0c8a9b2..1545853 100644 --- a/ext/kgio/connect.c +++ b/ext/kgio/connect.c @@ -257,12 +257,24 @@ void init_kgio_connect(void) rb_define_singleton_method(cKgio_Socket, "new", kgio_connect, 1); rb_define_singleton_method(cKgio_Socket, "start", kgio_start, 1); + /* + * Document-class: Kgio::TCPSocket + * + * Kgio::TCPSocket should be used in place of the plain TCPSocket + * when kgio_* methods are needed. + */ cTCPSocket = rb_const_get(rb_cObject, rb_intern("TCPSocket")); cTCPSocket = rb_define_class_under(mKgio, "TCPSocket", cTCPSocket); rb_include_module(cTCPSocket, mSocketMethods); rb_define_singleton_method(cTCPSocket, "new", kgio_tcp_connect, 2); rb_define_singleton_method(cTCPSocket, "start", kgio_tcp_start, 2); + /* + * Document-class: Kgio::UNIXSocket + * + * Kgio::UNIXSocket should be used in place of the plain UNIXSocket + * when kgio_* methods are needed. + */ cUNIXSocket = rb_const_get(rb_cObject, rb_intern("UNIXSocket")); cUNIXSocket = rb_define_class_under(mKgio, "UNIXSocket", cUNIXSocket); rb_include_module(cUNIXSocket, mSocketMethods); |