public class TcpEndpoint extends Endpoint
Constructor and Description |
---|
TcpEndpoint(int port)
Constructs a TcpEndpoint from a port number.
|
TcpEndpoint(java.lang.String ip,
int port)
Constructs a TcpEndpoint from an IP address and port number.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Returns a string representation of the TcpEndpoint.
|
void |
delete() |
protected void |
finalize() |
java.lang.String |
getIp()
Gets the IP address of the TcpEndpoint.
|
int |
getPort()
Gets the port number of the TcpEndpoint.
|
public TcpEndpoint(int port)
public TcpEndpoint(java.lang.String ip, int port)