1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add comments for resolv_timeout

This commit is contained in:
Masaki Matsushita 2020-09-25 15:39:26 +09:00
parent 511fe23fa2
commit f2d1808e73

View file

@ -12,11 +12,13 @@
/*
* call-seq:
* TCPSocket.new(remote_host, remote_port, local_host=nil, local_port=nil)
* TCPSocket.new(remote_host, remote_port, local_host=nil, local_port=nil, resolv_timeout: 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.
*
* [:resolv_timeout] specify the name resolution timeout in seconds.
*/
static VALUE
tcp_init(int argc, VALUE *argv, VALUE sock)