|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.bluebones.boggle.HostInfo
public class HostInfo
Represents host information for use in connection to a game of Network Boggle.
| Constructor Summary | |
|---|---|
HostInfo(String address,
int port)
Initialises a HostInfo with the specified values. |
|
| Method Summary | |
|---|---|
String |
address()
Gets the address of this HostInfo. |
String |
getAddr()
Gets the RMI address of this HostInfo. |
String |
getSimpleAddr()
Gets a simple representation of the host address in the following format: address:port. |
int |
port()
Gets the TCP port number of this HostInfo. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HostInfo(String address,
int port)
address - Address of host.port - Port number of host.| Method Detail |
|---|
public String address()
public int port()
public String getSimpleAddr()
address:port.
String simple representation of the host address.public String getAddr()
//address:port/net.bluebones.Server format.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||