| Package | Description |
|---|---|
| org.johnnei.javatorrent.internal.network.socket | |
| org.johnnei.javatorrent.network |
| Modifier and Type | Class and Description |
|---|---|
class |
TcpSocket |
| Modifier and Type | Method and Description |
|---|---|
<T extends ISocket> |
ConnectionDegradation.Builder.registerConnectionType(Class<T> socketType,
Supplier<T> supplier,
Optional<Class<? extends ISocket>> fallbackType) |
<T extends ISocket> |
ConnectionDegradation.Builder.registerDefaultConnectionType(Class<T> socketType,
Supplier<T> supplier,
Optional<Class<? extends ISocket>> fallbackType) |
| Modifier and Type | Method and Description |
|---|---|
protected ISocket |
TcpPeerConnectionAcceptor.acceptSocket() |
protected abstract ISocket |
AbstractPeerConnectionAcceptor.acceptSocket() |
ISocket |
ConnectionDegradation.createPreferredSocket()
Creates a new unconnected socket based on the most prefered connection type.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ISocket> |
ConnectionDegradation.degradeSocket(ISocket socket)
Degrades the given socket into the next type
|
| Modifier and Type | Method and Description |
|---|---|
void |
BitTorrentSocketException.addConnectionFailure(ISocket socketType,
IOException cause) |
Optional<ISocket> |
ConnectionDegradation.degradeSocket(ISocket socket)
Degrades the given socket into the next type
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ISocket> |
ConnectionDegradation.Builder.registerConnectionType(Class<T> socketType,
Supplier<T> supplier,
Optional<Class<? extends ISocket>> fallbackType) |
<T extends ISocket> |
ConnectionDegradation.Builder.registerDefaultConnectionType(Class<T> socketType,
Supplier<T> supplier,
Optional<Class<? extends ISocket>> fallbackType) |
| Constructor and Description |
|---|
BitTorrentSocket(MessageFactory messageFactory,
ISocket socket)
Creates a new bound BitTorrent socket.
|
Copyright © 2016. All rights reserved.