require "network"

handle = network.connect( { ip = "127.0.0.1", port = "6010", connection_type = "TCP" } )
if not handle then
   print( "fail to connect" )
end