

Public Member Functions | |
| byte [] | getFile (String k, String v, String name, String path) throws java.rmi.RemoteException |
| Interfaccia della funzione che restituisce il file chiesto sottoforma di array di byte. More... | |
| boolean | deleteFile (String k, String v, String name, String path) throws java.rmi.RemoteException |
| Interfaccia della funzione che cancella il file indicato tramite name e path. More... | |
| boolean | sendFile (String k, String v, byte[] content, String name) throws java.rmi.RemoteException |
| Interfaccia della funzione che riceve il file inviato. More... | |
| void | addAuthUser (String myu, String myp, String authu, String authp) throws java.rmi.RemoteException |
| Intrefaccia della funzione utilizzata da ServerRMI per inviare a C2C_server le coppie di identificazione (k,v) autorizzate ad effetture operazioni sui file e da inserire nell'hashtable. More... | |
| String | serverOn () throws java.rmi.RemoteException |
| Interfaccia della funzione di test che non necessita di autorizzazione per verificare se il server e' attivo. More... | |
Definition at line 11 of file C2C_RMIFuncConstructor.java.
| void p2pclient.C2C_RMIFuncConstructor.addAuthUser | ( | String | myu, |
| String | myp, | ||
| String | authu, | ||
| String | authp | ||
| ) | throws java.rmi.RemoteException |
Intrefaccia della funzione utilizzata da ServerRMI per inviare a C2C_server le coppie di identificazione (k,v) autorizzate ad effetture operazioni sui file e da inserire nell'hashtable.
| myu | user di questo client per la connessione al server |
| myp | password di questo client per la connessione al server |
| authu | k autorizzata |
| authp | v aurotizzata |
| java.rmi.RemoteException |
Implemented in p2pclient.C2C_server.
Referenced by p2pserver.ClientRmiAuthorization.main().

| boolean p2pclient.C2C_RMIFuncConstructor.deleteFile | ( | String | k, |
| String | v, | ||
| String | name, | ||
| String | path | ||
| ) | throws java.rmi.RemoteException |
Interfaccia della funzione che cancella il file indicato tramite name e path.
| k | ClientUsername |
| v | ClientAuthentication |
| name | FileName |
| path | FilePath |
| java.rmi.RemoteException |
Implemented in p2pclient.C2C_server.
Referenced by p2pclient.C2C_client.main().

| byte [] p2pclient.C2C_RMIFuncConstructor.getFile | ( | String | k, |
| String | v, | ||
| String | name, | ||
| String | path | ||
| ) | throws java.rmi.RemoteException |
Interfaccia della funzione che restituisce il file chiesto sottoforma di array di byte.
| k | ClientUsername |
| v | ClientAuthentication |
| name | FileName |
| path | FilePath |
| java.rmi.RemoteException |
Implemented in p2pclient.C2C_server.
Referenced by p2pclient.C2C_client.main().

| boolean p2pclient.C2C_RMIFuncConstructor.sendFile | ( | String | k, |
| String | v, | ||
| byte [] | content, | ||
| String | name | ||
| ) | throws java.rmi.RemoteException |
Interfaccia della funzione che riceve il file inviato.
| k | ClientUsername |
| v | ClientAuthentication |
| name | FileContent |
| content | FileName |
| java.rmi.RemoteException |
Implemented in p2pclient.C2C_server.
Referenced by p2pclient.C2C_client.main().

| String p2pclient.C2C_RMIFuncConstructor.serverOn | ( | ) | throws java.rmi.RemoteException |
Interfaccia della funzione di test che non necessita di autorizzazione per verificare se il server e' attivo.
| java.rmi.RemoteException |
Implemented in p2pclient.C2C_server.
Referenced by p2pclient.C2C_client.main().
