Welcome! Log In Create A New Profile

Advanced
Re: MA to send out TCP Sockets
February 17, 2017 08:30PM
the script needs to return a function, which will be run, when plugin is called.
- something like:

local host, port = "10.94.XX.XX", 1702
local socket = require("socket")
local tcp = assert(socket.tcp())

local sendMessage = function()
  tcp:connect(host, port);
  tcp:send("hello world");
end

return sendMessage
Subject Author Views Posted
MA to send out TCP Sockets Electriczen 2335 January 30, 2017 08:02PM
Re: MA to send out TCP Sockets glad 1499 February 17, 2017 08:30PM
Re: MA to send out TCP Sockets gralf 952 June 10, 2018 01:27PM



Sorry, only registered users may post in this forum.

Click here to login