feat: add backend server #9

Merged
pufereq merged 31 commits from feat/add-backend-server into develop 2025-09-19 13:20:40 +00:00
9 changed files with 336 additions and 58 deletions
Showing only changes of commit f2b4811145 - Show all commits

View File

@@ -60,6 +60,16 @@ class BackendServer:
)
time.sleep(1)
def _send_ack(self, client: Client) -> None:
"""Send an ACK message to a client.
Args:
client (Client): The client to send the ACK to.
"""
ack: bytes = Message.ack().to_bytes()
self.logger.debug(f"[>] Sending ACK to {client}")
client.outbound += ack
def _accept_connection(self, sock: socket.socket) -> None:
"""Accept a new client connection.