Package org.bitcoinj.net
Interface StreamConnectionFactory
- 
public interface StreamConnectionFactoryA factory which generates newStreamConnections when a new connection is opened. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamConnectiongetNewConnection(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
 
 - 
 
 -