mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
added .min files for microtel
This commit is contained in:
parent
5f55fa294d
commit
c96c575021
24
Embedded/microtel/microtel-3.lua.min
Normal file
24
Embedded/microtel/microtel-3.lua.min
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
{"eventTab","Z"},
|
||||||
|
{"modems","M"},
|
||||||
|
{"qPacket","qP"},
|
||||||
|
{"packetID","pID"},
|
||||||
|
{"packetType","pT"},
|
||||||
|
{"to","T"},
|
||||||
|
{"vport","vP"},
|
||||||
|
{"data","D"},
|
||||||
|
{"rawSendPacket","rS"},
|
||||||
|
{"sendPacket","sP"},
|
||||||
|
{"genPacketID","gP"},
|
||||||
|
{"packetCache","pC"},
|
||||||
|
{"checkCache","cC"},
|
||||||
|
{"routeCache","rC"},
|
||||||
|
{"realComputerPullSignal","rCPE"},
|
||||||
|
{"packetQueue","pQ"},
|
||||||
|
{"computer","C"},
|
||||||
|
{"C.uptime","U"},
|
||||||
|
{"table.unpack","Y"},
|
||||||
|
{"COMPUTER","computer"},
|
||||||
|
{"UPTIME","C.uptime"},
|
||||||
|
{"UNPACK","table.unpack"},
|
||||||
|
}
|
6
Embedded/microtel/microtel-4.lua.min
Normal file
6
Embedded/microtel/microtel-4.lua.min
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
{"to","T"},
|
||||||
|
{"vport","P"},
|
||||||
|
{"ldata","L"},
|
||||||
|
{"tdata","D"},
|
||||||
|
}
|
12
Embedded/microtel/microtel-5-core.lua.min
Normal file
12
Embedded/microtel/microtel-5-core.lua.min
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
{"address","A"},
|
||||||
|
{"vport","V"},
|
||||||
|
{"sclose","S"},
|
||||||
|
{"port","P"},
|
||||||
|
{"conn.state","conn.s"},
|
||||||
|
{"conn.buffer","conn.b"},
|
||||||
|
{"conn","C"},
|
||||||
|
{"etype","E"},
|
||||||
|
{"from","F"},
|
||||||
|
{"data","D"},
|
||||||
|
}
|
12
Embedded/microtel/microtel-5-flisten.lua.min
Normal file
12
Embedded/microtel/microtel-5-flisten.lua.min
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
{"address","A"},
|
||||||
|
{"vport","V"},
|
||||||
|
{"sclose","S"},
|
||||||
|
{"port","P"},
|
||||||
|
{"conn.state","conn.s"},
|
||||||
|
{"conn.buffer","conn.b"},
|
||||||
|
{"conn","C"},
|
||||||
|
{"etype","E"},
|
||||||
|
{"from","F"},
|
||||||
|
{"data","D"},
|
||||||
|
}
|
12
Embedded/microtel/microtel-5-listen.lua.min
Normal file
12
Embedded/microtel/microtel-5-listen.lua.min
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
{"address","A"},
|
||||||
|
{"vport","V"},
|
||||||
|
{"sclose","S"},
|
||||||
|
{"port","P"},
|
||||||
|
{"conn.state","conn.s"},
|
||||||
|
{"conn.buffer","conn.b"},
|
||||||
|
{"conn","C"},
|
||||||
|
{"etype","E"},
|
||||||
|
{"from","F"},
|
||||||
|
{"data","D"},
|
||||||
|
}
|
12
Embedded/microtel/microtel-5-open.lua.min
Normal file
12
Embedded/microtel/microtel-5-open.lua.min
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
{"address","A"},
|
||||||
|
{"vport","V"},
|
||||||
|
{"sclose","S"},
|
||||||
|
{"port","P"},
|
||||||
|
{"conn.state","conn.s"},
|
||||||
|
{"conn.buffer","conn.b"},
|
||||||
|
{"conn","C"},
|
||||||
|
{"etype","E"},
|
||||||
|
{"from","F"},
|
||||||
|
{"data","D"},
|
||||||
|
}
|
@ -1,28 +1,28 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#microtel-3.lua
|
#microtel-3.lua
|
||||||
cp microtel-3.lua microtel-3-mini.lua
|
cp microtel-3.lua microtel-3-mini.lua
|
||||||
sed -i -e 's/eventTab/Z/g' microtel-3-mini.lua
|
sed -i -e 's/eventTab/Z/g' \
|
||||||
sed -i -e 's/modems/M/g' microtel-3-mini.lua
|
-e 's/modems/M/g' \
|
||||||
sed -i -e 's/qPacket/qP/g' microtel-3-mini.lua
|
-e 's/qPacket/qP/g' \
|
||||||
sed -i -e 's/packetID/pID/g' microtel-3-mini.lua
|
-e 's/packetID/pID/g' \
|
||||||
sed -i -e 's/packetType/pT/g' microtel-3-mini.lua
|
-e 's/packetType/pT/g' \
|
||||||
sed -i -e 's/to/T/g' microtel-3-mini.lua
|
-e 's/to/T/g' \
|
||||||
sed -i -e 's/vport/vP/g' microtel-3-mini.lua
|
-e 's/vport/vP/g' \
|
||||||
sed -i -e 's/data/D/g' microtel-3-mini.lua
|
-e 's/data/D/g' \
|
||||||
sed -i -e 's/rawSendPacket/rS/g' microtel-3-mini.lua
|
-e 's/rawSendPacket/rS/g' \
|
||||||
sed -i -e 's/sendPacket/sP/g' microtel-3-mini.lua
|
-e 's/sendPacket/sP/g' \
|
||||||
sed -i -e 's/genPacketID/gP/g' microtel-3-mini.lua
|
-e 's/genPacketID/gP/g' \
|
||||||
sed -i -e 's/packetCache/pC/g' microtel-3-mini.lua
|
-e 's/packetCache/pC/g' \
|
||||||
sed -i -e 's/checkCache/cC/g' microtel-3-mini.lua
|
-e 's/checkCache/cC/g' \
|
||||||
sed -i -e 's/routeCache/rC/g' microtel-3-mini.lua
|
-e 's/routeCache/rC/g' \
|
||||||
sed -i -e 's/realComputerPullSignal/rCPE/g' microtel-3-mini.lua
|
-e 's/realComputerPullSignal/rCPE/g' \
|
||||||
sed -i -e 's/packetQueue/pQ/g' microtel-3-mini.lua
|
-e 's/packetQueue/pQ/g' \
|
||||||
sed -i -e 's/computer/C/g' microtel-3-mini.lua
|
-e 's/computer/C/g' \
|
||||||
sed -i -e 's/C.uptime/U/g' microtel-3-mini.lua
|
-e 's/C.uptime/U/g' \
|
||||||
sed -i -e 's/table.unpack/Y/g' microtel-3-mini.lua
|
-e 's/table.unpack/Y/g' \
|
||||||
sed -i -e 's/COMPUTER/computer/g' microtel-3-mini.lua
|
-e 's/COMPUTER/computer/g' \
|
||||||
sed -i -e 's/UPTIME/C.uptime/g' microtel-3-mini.lua
|
-e 's/UPTIME/C.uptime/g' \
|
||||||
sed -i -e 's/UNPACK/table.unpack/g' microtel-3-mini.lua
|
-e 's/UNPACK/table.unpack/g' microtel-3-mini.lua
|
||||||
lua strip.lua microtel-3-mini.lua microtel-3-mini.lua
|
lua strip.lua microtel-3-mini.lua microtel-3-mini.lua
|
||||||
|
|
||||||
#microtel-4.lua
|
#microtel-4.lua
|
||||||
|
@ -170,6 +170,11 @@ function start()
|
|||||||
|
|
||||||
local function queuePacket(_,ptype,to,vport,data,npID)
|
local function queuePacket(_,ptype,to,vport,data,npID)
|
||||||
npID = npID or genPacketID()
|
npID = npID or genPacketID()
|
||||||
|
if to == hostname or to == "localhost" then
|
||||||
|
computer.pushSignal("net_msg",to,vport,data)
|
||||||
|
computer.pushSignal("net_ack",npID)
|
||||||
|
return
|
||||||
|
end
|
||||||
pqueue[npID] = {ptype,to,vport,data,0,0}
|
pqueue[npID] = {ptype,to,vport,data,0,0}
|
||||||
dprint(npID,table.unpack(pqueue[npID]))
|
dprint(npID,table.unpack(pqueue[npID]))
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user