From fd6df1a36bd745bfa7d4070f0c268d4279c73486 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 26 Sep 2006 23:31:35 +0000 Subject: socket.c: a rdoc patch from Daniel Berger git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/socket.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/socket') diff --git a/ext/socket/socket.c b/ext/socket/socket.c index d42ca37231..b09d5d4f0f 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1278,6 +1278,14 @@ init_inetsock(sock, remote_host, remote_serv, local_host, local_serv, type) 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(argc, argv, sock) int argc; -- cgit v1.2.3