public class ServerDiscover extends Observable implements Runnable
Modifier and Type | Method and Description |
---|---|
void |
findClients(int port,
Observer observer)
Broadcasts a message throw network
|
static ServerDiscover |
getInstance()
The instance of running server discover
|
void |
run() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public static ServerDiscover getInstance()
public void findClients(int port, Observer observer)
port
- the port of the connectionobserver
- the observer class