socket_receiver_arguments.py 722 B

123456789101112131415161718192021222324
  1. from dataclasses import dataclass, field
  2. @dataclass
  3. class SocketReceiverArguments:
  4. recv_host: str = field(
  5. default="localhost",
  6. metadata={
  7. "help": "The host IP ddress for the socket connection. Default is '0.0.0.0' which binds to all "
  8. "available interfaces on the host machine."
  9. },
  10. )
  11. recv_port: int = field(
  12. default=12345,
  13. metadata={
  14. "help": "The port number on which the socket server listens. Default is 12346."
  15. },
  16. )
  17. chunk_size: int = field(
  18. default=1024,
  19. metadata={
  20. "help": "The size of each data chunk to be sent or received over the socket. Default is 1024 bytes."
  21. },
  22. )