Skip to content

How can I limit data transfer to direct connections? #6051

Discussion options

You must be logged in to vote

The Note is what lead me to believe that peer discovery would occur. Perhaps that should be clarified in this comment?

I believe it means, unless the address is known by request-response, either via manually adding and removing through its Behaviour interface, or a successful connection initiated by a NetworkBehaviour with peer discovery capabilities(implies emitting of NewExternalAddrOfPeer), no connection will be initated by request-response.
Consider how it handles FromSwarm:

    Behaviour::on_swarm_event(&mut self, event: FromSwarm) {
        self.addresses.on_swarm_event(&event); // go to PeerAddresses::on_swarm_event below
        // unrelated code omitted
    }
    
   PeerAddresses

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@MatthiasvB
Comment options

@MatthiasvB
Comment options

@drHuangMHT
Comment options

@drHuangMHT
Comment options

Answer selected by jxs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants