proxy apis over wireless

This commit is contained in:
kepler155c@gmail.com
2017-10-24 23:01:40 -04:00
parent 84b2b8ce63
commit 7fd93e8a8b
7 changed files with 63 additions and 13 deletions

View File

@@ -6,14 +6,18 @@
* background read buffering
]]--
local multishell = _ENV.multishell
local os = _G.os
multishell.setTitle(multishell.getCurrent(), 'Net transport')
local computerId = os.getComputerID()
_G.transport = {
local transport = {
timers = { },
sockets = { },
}
_G.transport = transport
function transport.open(socket)
transport.sockets[socket.sport] = socket