mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 20:15:39 +02:00
Update to v.0.8.3 of lua file
This commit is contained in:
@@ -20,7 +20,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum"
|
|||||||
|
|
||||||
|
|
||||||
-- Variable init
|
-- Variable init
|
||||||
Perun.Version = "v0.8.2"
|
Perun.Version = "v0.8.3"
|
||||||
Perun.StatusData = {}
|
Perun.StatusData = {}
|
||||||
Perun.SlotsData = {}
|
Perun.SlotsData = {}
|
||||||
Perun.MissionData = {}
|
Perun.MissionData = {}
|
||||||
@@ -192,7 +192,7 @@ Perun.ConnectToPerun = function ()
|
|||||||
Perun.AddLog("TCP connection error : " .. err)
|
Perun.AddLog("TCP connection error : " .. err)
|
||||||
else
|
else
|
||||||
Perun.AddLog("Connected to TCP server")
|
Perun.AddLog("Connected to TCP server")
|
||||||
Perun.TCP:setoption("keepalive")
|
-- Perun.TCP:setoption("keepalive")
|
||||||
Perun.lastReconnect = _now
|
Perun.lastReconnect = _now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -207,7 +207,7 @@ Perun.SendToPerun = function(data_id, data_package)
|
|||||||
TempData["instance"]=Perun.Instance
|
TempData["instance"]=Perun.Instance
|
||||||
|
|
||||||
temp=net.lua2json(TempData)
|
temp=net.lua2json(TempData)
|
||||||
temp=stripChars(temp)
|
temp="<SOT>" .. stripChars(temp) .. "<EOT>"
|
||||||
|
|
||||||
-- TCP Part - sending
|
-- TCP Part - sending
|
||||||
Perun.AddLog("Sending packet: " .. data_id)
|
Perun.AddLog("Sending packet: " .. data_id)
|
||||||
@@ -527,7 +527,7 @@ Perun.onSimulationFrame = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Send keepalive
|
-- Send keepalive
|
||||||
if _now > Perun.lastSentKeepAlive + 5 then
|
if _now > Perun.lastSentKeepAlive + 3 then
|
||||||
Perun.lastSentKeepAlive = _now
|
Perun.lastSentKeepAlive = _now
|
||||||
Perun.SendToPerun(0,nil)
|
Perun.SendToPerun(0,nil)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user