Uses of Interface
org.johnnei.javatorrent.network.socket.ISocket
-
Packages that use ISocket Package Description org.johnnei.javatorrent.network org.johnnei.javatorrent.network.connector org.johnnei.javatorrent.network.socket -
-
Uses of ISocket in org.johnnei.javatorrent.network
Methods in org.johnnei.javatorrent.network with type parameters of type ISocket Modifier and Type Method Description <T extends ISocket>
ConnectionDegradation.BuilderConnectionDegradation.Builder. registerConnectionType(Class<T> socketType, Supplier<T> supplier)Registers a new supported connection type.<T extends ISocket>
ConnectionDegradation.BuilderConnectionDegradation.Builder. registerConnectionType(Class<T> socketType, Supplier<T> supplier, Class<? extends ISocket> fallbackType)Registers a new supported connection type.<T extends ISocket>
ConnectionDegradation.BuilderConnectionDegradation.Builder. registerDefaultConnectionType(Class<T> socketType, Supplier<T> supplier)Registers a new supported connection type.<T extends ISocket>
ConnectionDegradation.BuilderConnectionDegradation.Builder. registerDefaultConnectionType(Class<T> socketType, Supplier<T> supplier, Class<? extends ISocket> fallbackType)Registers a new supported connection type.Methods in org.johnnei.javatorrent.network that return ISocket Modifier and Type Method Description ISocketConnectionDegradation. createPreferredSocket()Creates a new unconnected socket based on the most prefered connection type.Methods in org.johnnei.javatorrent.network that return types with arguments of type ISocket Modifier and Type Method Description Optional<ISocket>ConnectionDegradation. degradeSocket(ISocket socket)Degrades the given socket into the next typeMethods in org.johnnei.javatorrent.network with parameters of type ISocket Modifier and Type Method Description voidBitTorrentSocketException. addConnectionFailure(ISocket socketType, IOException cause)Optional<ISocket>ConnectionDegradation. degradeSocket(ISocket socket)Degrades the given socket into the next typeConstructors in org.johnnei.javatorrent.network with parameters of type ISocket Constructor Description BitTorrentSocket(MessageFactory messageFactory, ISocket socket)Creates a new bound BitTorrent socket. -
Uses of ISocket in org.johnnei.javatorrent.network.connector
Methods in org.johnnei.javatorrent.network.connector with parameters of type ISocket Modifier and Type Method Description voidBitTorrentHandshakeHandler. onConnectionEstablished(ISocket socket, byte[] torrentHash)Initiates the handshake by announcing which torrent we expect the remote end to download.voidBitTorrentHandshakeHandler. onConnectionReceived(ISocket socket)Responds to the received connection with the expected torrent if we have it. -
Uses of ISocket in org.johnnei.javatorrent.network.socket
Classes in org.johnnei.javatorrent.network.socket that implement ISocket Modifier and Type Class Description classNioTcpSocketDefault TCP Socket implementation which uses NIO as the underlying platform.
-