mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1113d54ede
commit
9856258cd0
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue