public class HandshakeFactory extends Object implements IHandshakeFactory
Note that this class implements a service. Hence, is not a part of the public API and is a subject to change.
| Constructor and Description |
|---|
HandshakeFactory(com.google.inject.Provider<IPeerRegistry> peerRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Handshake |
createHandshake(TorrentId torrentId)
Create a handshake, that can be used
to initialize peer connections for a given torrent.
|
@Inject public HandshakeFactory(com.google.inject.Provider<IPeerRegistry> peerRegistry)
public Handshake createHandshake(TorrentId torrentId)
IHandshakeFactorycreateHandshake in interface IHandshakeFactoryCopyright © 2016–2021. All rights reserved.