-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/value-range-debug
- Loading branch information
Showing
47 changed files
with
3,650 additions
and
2,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
local ProtocolIO = require("ProtocolIO") | ||
local TCPServer = require("TCPServer") | ||
local UDPServer = require("UDPServer") | ||
local socket = require("socket") --[[@as Socket]] | ||
|
||
local udp_send_address = "239.255.50.10" | ||
local udp_send_port = 5010 | ||
local udp_receive_address = "*" | ||
local udp_receive_port = 7778 | ||
|
||
local tcp_address = "*" | ||
local tcp_port = 7778 | ||
|
||
ProtocolIO.connections = { | ||
UDPServer:new(udp_send_address, udp_send_port, udp_receive_address, udp_receive_port, socket, BIOS.protocol.processInputLine), | ||
TCPServer:new(tcp_address, tcp_port, socket, BIOS.protocol.processInputLine), | ||
} | ||
module("BIOSConfig", package.seeall) | ||
|
||
--- @class TCPConnectionConfig | ||
--- @field address string | ||
--- @field port integer | ||
|
||
--- @class UDPConnectionConfig | ||
--- @field send_address string | ||
--- @field send_port integer | ||
--- @field receive_address string | ||
--- @field receive_port integer | ||
|
||
--- @class BIOSConfig | ||
--- @field tcp_config TCPConnectionConfig[] | ||
--- @field udp_config UDPConnectionConfig[] | ||
local BIOSConfig = { | ||
tcp_config = { | ||
{ | ||
address = "*", | ||
port = 7778 | ||
}, | ||
}, | ||
udp_config = { | ||
{ | ||
send_address = "239.255.50.10", | ||
send_port = 5010, | ||
receive_address = "*", | ||
receive_port = 7778 | ||
}, | ||
}, | ||
} | ||
|
||
return BIOSConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.