public class ReceiveController extends Object
Constructor and Description |
---|
ReceiveController() |
Modifier and Type | Method and Description |
---|---|
List<Connections> |
findServers(Observer observer)
Find a servers that have an active sharing
|
void |
startClient(Connections connection,
Cell cellStart,
Observer observer,
String password)
Method that will create a new client and will start the connection
|
void |
startClient(String IP,
int port,
Cell cellStart,
String password,
Observer observer)
Method that will create a new client and will start the connection
|
public ReceiveController()
public void startClient(String IP, int port, Cell cellStart, String password, Observer observer)
IP
- the server ipport
- the connection port of the servercellStart
- cell where we paste the content of the shared cellspassword
- the connection passwordobserver
- the observer classpublic List<Connections> findServers(Observer observer)
observer
- the observer classpublic void startClient(Connections connection, Cell cellStart, Observer observer, String password)
connection
- the connection detailscellStart
- cell where we paste the content of the shared cellsobserver
- the observer classpassword
- the password connection