Change calls in these forms:

socket:connect(host.ip, port.number)
socket:connect(host.ip, port.number, port.protocol)

to this:

socket:connect(host, port)

connect can take host and port tables now, and the default protocol is
taken from the port table if possible.
This commit is contained in:
david 2010-08-16 18:59:30 +00:00
parent bfffa53616
commit 3c89e089fc
55 changed files with 63 additions and 63 deletions

View file

@ -61,7 +61,7 @@ local function connectSocket(host, port, ssl)
-- set a reasonable timeout value
socket:set_timeout(5000)
socket:connect(host.ip, port.number, "tcp")
socket:connect(host, port)
-- let's be responsible and avoid sending communication in the clear
if ( ssl ) then