1
0
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:
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 #!/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

View File

@ -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