public class DefaultConnectionFactory extends java.lang.Object implements StreamConnectionFactory
Constructor and Description |
---|
DefaultConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createConnection(java.net.InetAddress peer)
Connect to peer and start exchanging message.
|
public java.net.Socket createConnection(java.net.InetAddress peer) throws java.io.IOException
createConnection
in interface StreamConnectionFactory
peer
- the peer to connect to.java.io.IOException
- when connection failed.Copyright © 2016 The Apache Software Foundation