Package org.bitcoinj.net
Interface StreamConnectionFactory
-
public interface StreamConnectionFactory
A factory which generates newStreamConnection
s when a new connection is opened.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamConnection
getNewConnection(java.net.InetAddress inetAddress, int port)
Returns a new handler or null to have the connection close.
-
-
-
Method Detail
-
getNewConnection
@Nullable StreamConnection getNewConnection(java.net.InetAddress inetAddress, int port)
Returns a new handler or null to have the connection close.- Parameters:
inetAddress
- The client's (IP) addressport
- The remote port on the client side
-
-