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 71 additions and 3 deletions
Showing only changes of commit cc1145a4ac - Show all commits

View File

@@ -12,6 +12,7 @@ from judas_protocol import Message
class Connector:
def __init__(
self,
mac_address: str,
host: str,
port: int,
connect_timeout: float = 5.0,
@@ -32,7 +33,7 @@ class Connector:
socket.AF_INET, socket.SOCK_STREAM
)
self.mac_address: str = self._get_mac_address()
self.mac_address: str = mac_address
def _get_mac_address(self) -> str:
mac_address: str = ":".join(