feat: add Client class #3

Merged
pufereq merged 15 commits from feat/add-client-class into develop 2025-09-23 11:36:37 +00:00
3 changed files with 72 additions and 14 deletions
Showing only changes of commit 014c4296e0 - Show all commits

View File

@@ -4,7 +4,6 @@ from __future__ import annotations
import logging as lg
import socket
import time
import uuid
from judas_protocol import Message
@@ -36,16 +35,6 @@ class Connector:
self.mac_address: str = mac_address
def _get_mac_address(self) -> str:
mac_address: str = ":".join(
[
"{:02x}".format((uuid.getnode() >> ele) & 0xFF)
for ele in range(0, 8 * 6, 8)
][::-1]
)
self.logger.debug(f"MAC address: {mac_address}")
return mac_address
def _send_ack(self) -> None:
self.logger.debug("[>] Sending ACK...")
try: