Skip to content
Snippets Groups Projects
Commit cb2ee893 authored by Hang's avatar Hang
Browse files

fast push

parent 197d87c6
No related branches found
No related tags found
1 merge request!10MP3 Log Version Ready
......@@ -697,8 +697,8 @@ def server_handler(conn, SELF_NODE):
def accepting_clients(SELF_NODE):
try:
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
pprint(f'[accepting_clients] - {SERVERS}')
server.bind((CURRENT_SERVER_IP, SERVERS[CURRENT_SERVER_IP][SERVER_PORT]))
# pprint(f'[accepting_clients] - {SERVERS}')
server.bind((CURRENT_SERVER_IP, SERVERS[CURRENT_SERVER_ID][SERVER_PORT]))
server.listen()
# print(f"[LISTENING] Server is listening on {ADDR}") # DEBUG
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment