Fixed dispatcher and registry

This commit is contained in:
Lyncoln
2026-10-09 03:18:21 -04:00
parent f4742f00e0
commit e6b2722708
21 changed files with 125 additions and 72 deletions
+7 -3
View File
@@ -1,13 +1,17 @@
import socket
import json
from dispatch import buildDispatch
from dispatcher import dispatchRequest
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(("127.0.0.1", 19001))
server.bind(("127.0.0.1", 19002))
lifecycles = {}
server.listen()
#lifecycles = {}
while True:
connection, address = server.accept()
while True:
@@ -18,7 +22,7 @@ while True:
# if not data:
# break
dispatch = buildDispatch(request)
dispatch = dispatchRequest(request, lifecycles)
connection.close()