diff --git a/Embedded/microtel/microtel-3.lua.min b/Embedded/microtel/microtel-3.lua.min new file mode 100644 index 0000000..97b4d6d --- /dev/null +++ b/Embedded/microtel/microtel-3.lua.min @@ -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"}, +} diff --git a/Embedded/microtel/microtel-4.lua.min b/Embedded/microtel/microtel-4.lua.min new file mode 100644 index 0000000..bdc6c54 --- /dev/null +++ b/Embedded/microtel/microtel-4.lua.min @@ -0,0 +1,6 @@ +{ + {"to","T"}, + {"vport","P"}, + {"ldata","L"}, + {"tdata","D"}, +} diff --git a/Embedded/microtel/microtel-5-core.lua.min b/Embedded/microtel/microtel-5-core.lua.min new file mode 100644 index 0000000..3cc44fc --- /dev/null +++ b/Embedded/microtel/microtel-5-core.lua.min @@ -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"}, +} diff --git a/Embedded/microtel/microtel-5-flisten.lua.min b/Embedded/microtel/microtel-5-flisten.lua.min new file mode 100644 index 0000000..3cc44fc --- /dev/null +++ b/Embedded/microtel/microtel-5-flisten.lua.min @@ -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"}, +} diff --git a/Embedded/microtel/microtel-5-listen.lua.min b/Embedded/microtel/microtel-5-listen.lua.min new file mode 100644 index 0000000..3cc44fc --- /dev/null +++ b/Embedded/microtel/microtel-5-listen.lua.min @@ -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"}, +} diff --git a/Embedded/microtel/microtel-5-open.lua.min b/Embedded/microtel/microtel-5-open.lua.min new file mode 100644 index 0000000..3cc44fc --- /dev/null +++ b/Embedded/microtel/microtel-5-open.lua.min @@ -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"}, +} diff --git a/Embedded/microtel/minify.sh b/Embedded/microtel/minify.sh index 0a274eb..99d2433 100755 --- a/Embedded/microtel/minify.sh +++ b/Embedded/microtel/minify.sh @@ -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 diff --git a/OpenOS/etc/rc.d/minitel.lua b/OpenOS/etc/rc.d/minitel.lua index b5cc673..a0df423 100644 --- a/OpenOS/etc/rc.d/minitel.lua +++ b/OpenOS/etc/rc.d/minitel.lua @@ -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