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.

HELP luasocket changed in build 31
#5
That's what I did  and removed the bad stuff.  Still blocks out.  tried with or without timeout and timeout of 0 and 1.  

Code:
if not skt then
  --add receive thread
  copas.addthread(function()
     skt = socket.tcp()       
       err = copas.connect(skt,'192.168.0.175', 4999)
       skt:settimeout(1)
       log(skt)
       log(err)

      if(skt)then
        init()
        while true do
          local resp,err = skt:receive('*r')
            if(resp~=nil) then
              local fd,prtd = pcall(parse,resp)
              if(fd==false)then
                log("Error with parsemsg")
              end
            end
        end     
      end
    end)
end
Reply


Messages In This Thread
RE: HELP luasocket changed in build 31 - by rocfusion - 10.09.2019, 19:56

Forum Jump: