Skip to content

Commit b0f9af9

Browse files
committed
Fixes gh-27 Add timeout parameter for tcp_connect
1 parent 21de112 commit b0f9af9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sphinx/reference/reference_lua/socket.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ the function invocations will look like ``sock:function_name(...)``.
115115
116116
.. _socket-tcp_connect:
117117

118-
.. function:: tcp_connect(host[, port])
118+
.. function:: tcp_connect(host[, port[, timeout]])
119119

120120
Connect a socket to a remote host.
121121

122122
:param string host: URL or IP address
123123
:param number port: port number
124+
:param number timeout: timeout
124125
:return: a connected socket, if no error.
125126
:rtype: userdata
126127

0 commit comments

Comments
 (0)