public class UtpPeerConnectionAcceptor extends AbstractPeerConnectionAcceptor
UtpMultiplexertorrentClient| Constructor and Description |
|---|
UtpPeerConnectionAcceptor(TorrentClient torrentClient)
Creates a new uTP acceptor
|
| Modifier and Type | Method and Description |
|---|---|
protected ISocket |
acceptSocket() |
void |
onReceivedConnection(UtpSocket socket)
Adds a newly found uTP connection to the queue to be connected.
|
runpublic UtpPeerConnectionAcceptor(TorrentClient torrentClient)
torrentClient - The torrent client to which we are accepting peers.public void onReceivedConnection(UtpSocket socket)
socket - The socket to add.protected ISocket acceptSocket() throws IOException
acceptSocket in class AbstractPeerConnectionAcceptorIOExceptionCopyright © 2016. All rights reserved.