(self, obj, role=None, idx=-1, suffix=tuple())
return self.remote_parties(obj=obj, parties=parties, suffix=suffix)
send obj to other parties.

        Args:
            obj: object to be sent
            role: role of parties to sent to, use one of ['Host', 'Guest', 'Arbiter', None].
                The default is None, means sent values to parties regardless their party role
            idx: id of party to sent to.
                The default is -1, which means sent values to parties regardless their party id
            suffix: additional tag suffix, the default is tuple()
send obj to other parties.
send obj to other parties .
def remote(self, obj, role=None, idx=-1, suffix=tuple()):
        """
        send obj to other parties.

        Args:
            obj: object to be sent
            role: role of parties to sent to, use one of ['Host', 'Guest', 'Arbiter', None].
                The default is None, means sent values to parties regardless their party role
            idx: id of party to sent to.
                The default is -1, which means sent values to parties regardless their party id
            suffix: additional tag suffix, the default is tuple()
        """
        party_info = get_parties()
        if idx >= 0 and role is None:
            raise ValueError("role cannot be None if idx specified")

        # get subset of dst roles in runtime conf
        if role is None:
            parties = party_info.roles_to_parties(self._dst, strict=False)
        else:
            if isinstance(role, str):
                role = [role]
            parties = party_info.roles_to_parties(role)

        if idx >= 0:
            if idx >= len(parties):
                raise RuntimeError(
                    f"try to remote to {idx}th party while only {len(parties)} configurated: {parties}, check {self._name}"
                )
            parties = parties[idx]
        return self.remote_parties(obj=obj, parties=parties, suffix=suffix)
def remote ( self , obj , role = None , idx = - 1 , suffix = tuple ( ) ) : party_info = get_parties ( ) if idx >= 0 and role is None : raise ValueError ( "role cannot be None if idx specified" ) # get subset of dst roles in runtime conf if role is None : parties = party_info . roles_to_parties ( self . _dst , strict = False ) else : if isinstance ( role , str ) : role = [ role ] parties = party_info . roles_to_parties ( role ) if idx >= 0 : if idx >= len ( parties ) : raise RuntimeError ( f"try to remote to {idx}th party while only {len(parties)} configurated: {parties}, check {self._name}" ) parties = parties [ idx ] return self . remote_parties ( obj = obj , parties = parties , suffix = suffix )