This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

TCP/ip connect and maintain connection
#13
Try using this:
Code:
tags = grp.gettags(event.dst)

for _, tag in ipairs(tags) do
  addr = tag:match('SYM=(%d+)')
  
  if addr then
    break
  end
end

log(addr)
if addr then
  -- send TCP message
end

Note that tags are case-sensitive.
Reply


Messages In This Thread
RE: TCP/ip connect and maintain connection - by admin - 30.10.2023, 07:54

Forum Jump: