public interface IConnectionFactory
Modifier and Type | Method and Description |
---|---|
IConnection |
create(java.lang.String host,
int port)
Creates connection using the host and port
|
IConnection create(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException
host
- The host to connect toport
- The port to connect tojava.io.IOException
- On an IO Errorjava.net.UnknownHostException
- If the host can't be resolved