1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 02:28:05 +11:00

added .min files for microtel

This commit is contained in:
Izaya 2018-05-17 16:32:11 +10:00
parent 5f55fa294d
commit c96c575021
8 changed files with 105 additions and 22 deletions

View 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"},
}

View File

@ -0,0 +1,6 @@
{
{"to","T"},
{"vport","P"},
{"ldata","L"},
{"tdata","D"},
}

View 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"},
}

View 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"},
}

View 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"},
}

View 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"},
}

View File

@ -1,28 +1,28 @@
#!/usr/bin/env bash
#microtel-3.lua
cp microtel-3.lua microtel-3-mini.lua
sed -i -e 's/eventTab/Z/g' microtel-3-mini.lua
sed -i -e 's/modems/M/g' microtel-3-mini.lua
sed -i -e 's/qPacket/qP/g' microtel-3-mini.lua
sed -i -e 's/packetID/pID/g' microtel-3-mini.lua
sed -i -e 's/packetType/pT/g' microtel-3-mini.lua
sed -i -e 's/to/T/g' microtel-3-mini.lua
sed -i -e 's/vport/vP/g' microtel-3-mini.lua
sed -i -e 's/data/D/g' microtel-3-mini.lua
sed -i -e 's/rawSendPacket/rS/g' microtel-3-mini.lua
sed -i -e 's/sendPacket/sP/g' microtel-3-mini.lua
sed -i -e 's/genPacketID/gP/g' microtel-3-mini.lua
sed -i -e 's/packetCache/pC/g' microtel-3-mini.lua
sed -i -e 's/checkCache/cC/g' microtel-3-mini.lua
sed -i -e 's/routeCache/rC/g' microtel-3-mini.lua
sed -i -e 's/realComputerPullSignal/rCPE/g' microtel-3-mini.lua
sed -i -e 's/packetQueue/pQ/g' microtel-3-mini.lua
sed -i -e 's/computer/C/g' microtel-3-mini.lua
sed -i -e 's/C.uptime/U/g' microtel-3-mini.lua
sed -i -e 's/table.unpack/Y/g' microtel-3-mini.lua
sed -i -e 's/COMPUTER/computer/g' microtel-3-mini.lua
sed -i -e 's/UPTIME/C.uptime/g' microtel-3-mini.lua
sed -i -e 's/UNPACK/table.unpack/g' microtel-3-mini.lua
sed -i -e 's/eventTab/Z/g' \
-e 's/modems/M/g' \
-e 's/qPacket/qP/g' \
-e 's/packetID/pID/g' \
-e 's/packetType/pT/g' \
-e 's/to/T/g' \
-e 's/vport/vP/g' \
-e 's/data/D/g' \
-e 's/rawSendPacket/rS/g' \
-e 's/sendPacket/sP/g' \
-e 's/genPacketID/gP/g' \
-e 's/packetCache/pC/g' \
-e 's/checkCache/cC/g' \
-e 's/routeCache/rC/g' \
-e 's/realComputerPullSignal/rCPE/g' \
-e 's/packetQueue/pQ/g' \
-e 's/computer/C/g' \
-e 's/C.uptime/U/g' \
-e 's/table.unpack/Y/g' \
-e 's/COMPUTER/computer/g' \
-e 's/UPTIME/C.uptime/g' \
-e 's/UNPACK/table.unpack/g' microtel-3-mini.lua
lua strip.lua microtel-3-mini.lua microtel-3-mini.lua
#microtel-4.lua

View File

@ -170,6 +170,11 @@ function start()
local function queuePacket(_,ptype,to,vport,data,npID)
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}
dprint(npID,table.unpack(pqueue[npID]))
end