code: def attach_tcp_service(cls, tcp_service: TCPService):
          
          if cls._tcp_service is None:
              cls._tcp_service = tcp_service
              cls._set_bus(tcp_service)
          else:
              warnings.warn('TCP service is already attached')
docs: Attaches a service for hosting
          :param tcp_service: A TCPService instance