|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.camelspotting.jotl.udp.UDPGameQuerier
public final class UDPGameQuerier
This is one of the primary access points for any user of the library. For each server you want to gather information from an object of this class must be instantiated. It supports both DNS and IPv4-addresses. If you use any of the constructors that have the option of not querying the server immidiately the query-metods may be used to gather information post-constructing the object.
#query(SendablePacketType pt)
,
#queryAll()
Constructor Summary | |
---|---|
UDPGameQuerier(String host,
int fromPort,
int destPort)
Main constructor for class. |
Method Summary | |
---|---|
Game |
getAllInformation()
Method for getting all available information |
ClientsDetails |
getClientsDetails()
Method for accessing details on the connected clients. |
Server |
getServer()
Returns server related information. |
ServerDetails |
getServerDetails()
Method for accessing server details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDPGameQuerier(String host, int fromPort, int destPort) throws IllegalHostException
host
- the hostname (openttd.someserver.com) or IPv4 to contact (ex:
127.0.0.1)fromPort
- the port to usedestPort
- the port to contact
com.camelspotting.openttd.JOTLException
IllegalHostException
Method Detail |
---|
public ServerDetails getServerDetails() throws JOTLException
GameQuerier
getServerDetails
in interface GameQuerier
ClientsInfo
object or null if no info has
been collected
JOTLException
public ClientsDetails getClientsDetails() throws JOTLException
GameQuerier
getClientsDetails
in interface GameQuerier
ServerInfo
object or null if no info has been
collected
JOTLException
public Game getAllInformation() throws JOTLException
GameQuerier
getAllInformation
in interface GameQuerier
JOTLException
public Server getServer()
GameQuerier
getServer
in interface GameQuerier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |