diff --git a/core/src/main/java/org/bitcoinj/core/Peer.java b/core/src/main/java/org/bitcoinj/core/Peer.java index 8aea1c333..53bca8173 100644 --- a/core/src/main/java/org/bitcoinj/core/Peer.java +++ b/core/src/main/java/org/bitcoinj/core/Peer.java @@ -204,7 +204,7 @@ public class Peer extends PeerSocketHandler { * connection. If you want to create a one-off connection, create a Peer and pass it to * {@link NioClientManager#openConnection(SocketAddress, StreamConnection)} * or - * {@link NioClient#NioClient(SocketAddress, StreamConnection, int)}.
+ * {@link NioClient#NioClient(SocketAddress, StreamConnection, Duration)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -223,7 +223,7 @@ public class Peer extends PeerSocketHandler { * connection. If you want to create a one-off connection, create a Peer and pass it to * {@link NioClientManager#openConnection(SocketAddress, StreamConnection)} * or - * {@link NioClient#NioClient(SocketAddress, StreamConnection, int)}. + * {@link NioClient#NioClient(SocketAddress, StreamConnection, Duration)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
@@ -257,7 +257,7 @@ public class Peer extends PeerSocketHandler { * connection. If you want to create a one-off connection, create a Peer and pass it to * {@link NioClientManager#openConnection(SocketAddress, StreamConnection)} * or - * {@link NioClient#NioClient(SocketAddress, StreamConnection, int)}. + * {@link NioClient#NioClient(SocketAddress, StreamConnection, Duration)}. * *The remoteAddress provided should match the remote address of the peer which is being connected to, and is * used to keep track of which peers relayed transactions and offer more descriptive logging.
diff --git a/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java b/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java index ab90e56a7..9da33a3d9 100644 --- a/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java +++ b/core/src/main/java/org/bitcoinj/net/BlockingClientManager.java @@ -68,7 +68,7 @@ public class BlockingClientManager extends AbstractIdleService implements Client /** * Sets the number of milliseconds to wait before giving up on a connect attempt - * @param timeout timeout for establishing a connection to the client + * @param connectTimeout timeout for establishing a connection to the client */ public void setConnectTimeout(Duration connectTimeout) { this.connectTimeout = connectTimeout; diff --git a/core/src/main/java/org/bitcoinj/net/NioClient.java b/core/src/main/java/org/bitcoinj/net/NioClient.java index b3afa8aef..3c0c78436 100644 --- a/core/src/main/java/org/bitcoinj/net/NioClient.java +++ b/core/src/main/java/org/bitcoinj/net/NioClient.java @@ -107,9 +107,9 @@ public class NioClient implements MessageWriteTarget { * The given connection MUST be unique to this object. This does not block while waiting for the connection to * open, but will call either the {@link StreamConnection#connectionOpened()} or * {@link StreamConnection#connectionClosed()} callback on the created network event processing thread. - * - * @param connectTimeoutMillis The connect timeout set on the connection (in milliseconds). 0 is interpreted as no - * timeout. + * @param serverAddress socket address of the server to connect to + * @param parser parses data from the server + * @param connectTimeout timeout for establishing a connection to the server, or ZERO for no timeout */ public NioClient(final SocketAddress serverAddress, final StreamConnection parser, final Duration connectTimeout) throws IOException {