public class SocketInfo extends Object
| Constructor and Description |
|---|
SocketInfo(String hostAndPort) |
SocketInfo(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
connect() |
String |
getHost() |
String |
getIpAddress()
Retrieve the IP address of the Server we are targeting
|
int |
getPort() |
String |
toString() |
public SocketInfo(String host, int port)
public SocketInfo(String hostAndPort)
public String getHost()
public int getPort()
public Socket connect() throws IOException
IOException@CheckForNull public String getIpAddress()
Copyright © 2016–2018. All rights reserved.