|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfeud.clientserver.ServerBrowser
Simple server browser that listens on a specified UDP port for servers broadcasting their connection data on that port.
Constructor Summary | |
ServerBrowser(int port)
Creates a new ServerBrowser that will listen on a speficied UDP-port for servers to broadcast their data. |
Method Summary | |
void |
addListener(DataChangeListener listener)
Adds a new DataChangesListener to the browser. |
java.util.List |
getServerList()
Returns the current list of servers that this browser has found. |
void |
startBrowser()
Starts the browser. |
void |
stopBrowser()
Stops the browser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerBrowser(int port)
port
- the UDP port to useMethod Detail |
public void addListener(DataChangeListener listener)
listener
- the listenerpublic void startBrowser()
public void stopBrowser()
public java.util.List getServerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |