From 30722396d3badc7b42cc9fab380ba084a0c0d699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6cker?= Date: Fri, 26 Dec 2014 23:52:03 +0100 Subject: [PATCH] Revert "Add DCSBIOS_ADD_EXPORT_TARGET and DCSBIOS_REMOVE_EXPORT_TARGET commands" This reverts commit ae772c9f700f93d59493bec8724f11695ed4d612. While trying to implement this on the client side it became apparent that this changeset was not fully thought through. There is no way to reliably stop exporting to the additional target IP/Port once that client has been closed. Doing so would require implementing a keep-alive mechanism. We have TCP support now, which mostly solves the same problem in a simpler way (with the disadvantage of a very small performance penalty). Additional UDP targets can still be used by statically configuring them in BIOSConfig.lua. Closes #6. --- Scripts/DCS-BIOS/lib/Protocol.lua | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Scripts/DCS-BIOS/lib/Protocol.lua b/Scripts/DCS-BIOS/lib/Protocol.lua index 63a2fdc37..b32203653 100644 --- a/Scripts/DCS-BIOS/lib/Protocol.lua +++ b/Scripts/DCS-BIOS/lib/Protocol.lua @@ -60,22 +60,6 @@ function BIOS.protocol.processInputLine(line) argumentCache = {} end if cmd then - if cmd == "DCSBIOS_ADD_EXPORT_TARGET" then - local ip, port = args:match("^([^:]+):([0-9]+)") - local newIoConnection = BIOS.protocol_io.UDPSender:create({ host = ip, port = port }) - newIoConnection:init() - BIOS.protocol_io.connections[#BIOS.protocol_io.connections + 1] = newIoConnection - end - if cmd == "DCSBIOS_REMOVE_EXPORT_TARGET" then - local ip, port = args:match("^([^:]+):([0-9]+)") - local newConns = {} - for _, c in pairs(BIOS.protocol_io.connections) do - if not (c.host == ip and c.port == port) then - newConns[#newConns+1] = c - end - end - BIOS.protocol_io.connections = newConns - end if acftModule then if acftModule.inputProcessors[cmd] then acftModule.inputProcessors[cmd](args)