create binary_commands to handle binary data in req_binary

This commit is contained in:
Florent
2025-07-15 13:39:19 +02:00
parent cb6379e4c5
commit de00634c26
2 changed files with 32 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import logging
import random
from typing import Any, Dict, List, Optional, Union
from .events import Event, EventType
from .binary_commands import BinaryCommandHandler
# Define types for destination parameters
DestinationType = Union[bytes, str, Dict[str, Any]]
@@ -52,6 +53,7 @@ class CommandHandler:
self._sender_func = None
self._reader = None
self.dispatcher = None
self.binary = BinaryCommandHandler(self)
self.default_timeout = default_timeout if default_timeout is not None else self.DEFAULT_TIMEOUT
def set_connection(self, connection: Any) -> None: