public class BitfieldConnectionHandler extends Object implements HandshakeHandler
Constructor and Description |
---|
BitfieldConnectionHandler(TorrentRegistry torrentRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
processIncomingHandshake(PeerConnection connection,
Handshake peerHandshake)
Process an incoming handshake, received from a remote peer.
|
void |
processOutgoingHandshake(Handshake handshake)
Make amendments to an outgoing handshake, that will be sent to a remote peer.
|
@Inject public BitfieldConnectionHandler(TorrentRegistry torrentRegistry)
public void processIncomingHandshake(PeerConnection connection, Handshake peerHandshake)
HandshakeHandler
UnsupportedOperationException
.processIncomingHandshake
in interface HandshakeHandler
public void processOutgoingHandshake(Handshake handshake)
HandshakeHandler
processOutgoingHandshake
in interface HandshakeHandler
Copyright © 2016–2021. All rights reserved.