Authors:
- Aurelien Rousseau
- Cyril Ferlicot
To launch a Server you can use ServerMain.
A Server has a Map of pseudo and passwords to manage users.
It also has a ServerRepertoireList to manage the repertoires.
To launch a Client you can use ClientMain. This main takes 2 parameter.
A String that is the inet address of the server and an Integer, the port.
The interface is composed by 3 parts:
- The first one allow to connect to the server. For now there is only one user. The id is
testand the password istest. - The second allow to manage your repertoires. If you select
Accéder à un repertoireyou will go to the third one. - The last allow to manage the contacts of the repertoire.
Each command begin by sending an unique command from the Client to the server. Here are the commands and the descriptions.
connexion
- Client: send a
Stringwith the login and the password te the Server. - Server: send a boolean.
trueif the password is good,falseif the password is wrong.
listeRep
- Server: send a
Stringcontaining all the repertoires's id separated by a space.
chercheRep
- Client: send the
Repertoire's id to search. - Server: send the
Repertoireto the client.
retirerRep
- Client: send the
Repertoire's id to remove. - Server: send a Boolean.
trueif theRepertoireexisted elsefalse.
ajouterRep
- Client: send the
Repertoireinstance to add. - Server: send a Boolean.
trueif theRepertoiredid not exist, elsefalse.
accederRep
- Client: send the
Repertoire's id that we need to select. - Server: send
trueif theRepertoireexist.
liste
- Server: send a
Stringcontaining all the contacts's name separated by a space.
cherche
- Client: send the
Personne's id to search. - Server: send the
Personneto the client.
retirer
- Client: send the
Personne's id to remove. - Server: send a Boolean.
trueif thePersonneexisted elsefalse.
ajouter
- Client: send the
Personneinstance to add. - Server: send a Boolean.
trueif thePersonnedid not exist, elsefalse.
modifier
- Client: send the
Personneupdated. - Server: send
trueif the update succeeded, elsefalse.