su=net.createConnection(net.TCP)
su:connect(3000, "192.168.1.106")
su:send("abc\n")
su:close()
However, if I follow that with another connect command, e.g.,
su:connect(3000, "192.168.1.106")
su:send("abc\n")
su:close()
Then this connection is not seen by the server. So, I'm a little confused as to this process. Do I really need to create another TCP connection? If so, what is the purpose of having 'createConnection' and 'connect' as two separate steps? I assumed the first just set up the data structure for a connection while connect and close do the work of actually establishing and closing the sockets.