public class PeerConnectionFactory extends Object implements IPeerConnectionFactory
Constructor and Description |
---|
PeerConnectionFactory(Selector selector,
IConnectionHandlerFactory connectionHandlerFactory,
IChannelPipelineFactory channelPipelineFactory,
MessageHandler<Message> protocol,
TorrentRegistry torrentRegistry,
IBufferManager bufferManager,
DataReceiver dataReceiver,
EventSource eventSource,
Config config) |
Modifier and Type | Method and Description |
---|---|
ConnectionResult |
createIncomingConnection(Peer peer,
SocketChannel channel) |
ConnectionResult |
createOutgoingConnection(Peer peer,
TorrentId torrentId) |
public PeerConnectionFactory(Selector selector, IConnectionHandlerFactory connectionHandlerFactory, IChannelPipelineFactory channelPipelineFactory, MessageHandler<Message> protocol, TorrentRegistry torrentRegistry, IBufferManager bufferManager, DataReceiver dataReceiver, EventSource eventSource, Config config)
public ConnectionResult createOutgoingConnection(Peer peer, TorrentId torrentId)
createOutgoingConnection
in interface IPeerConnectionFactory
public ConnectionResult createIncomingConnection(Peer peer, SocketChannel channel)
createIncomingConnection
in interface IPeerConnectionFactory
Copyright © 2016–2021. All rights reserved.