diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-26 23:31:35 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-26 23:31:35 +0000 |
commit | 9856258cd0aa8b74d77a86a22d36f2bc328cf151 (patch) | |
tree | 09bbaa4e338739df76ea29d722d3a82b0a12d0c6 | |
parent | 1113d54edecb68eaa55aa07996dec3b6fd8422f6 (diff) | |
download | ruby-9856258cd0aa8b74d77a86a22d36f2bc328cf151.tar.gz |
socket.c: a rdoc patch from Daniel Berger <djberg96 at gmail.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/socket/socket.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index d5a3593fa7..acb8cdf7d4 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1289,6 +1289,14 @@ init_inetsock(VALUE sock, VALUE remote_host, VALUE remote_serv, inetsock_cleanup, (VALUE)&arg); } +/* + * call-seq: + * TCPSocket.new(remote_host, remote_port, local_host=nil, local_port=nil) + * + * Opens a TCP connection to +remote_host+ on +remote_port+. If +local_host+ + * and +local_port+ are specified, then those parameters are used on the local + * end to establish the connection. + */ static VALUE tcp_init(int argc, VALUE *argv, VALUE sock) { |