|
|
|
@ -57,14 +57,6 @@ public class ClientP2Pgui {
|
|
|
|
|
*/
|
|
|
|
|
public ClientP2Pgui(String hostnameServer, int portServer, String hostnameTracker, int portTracker, String protocolP2P) {
|
|
|
|
|
|
|
|
|
|
if (directories == null && loggerServer == null && loggerClient == null) {
|
|
|
|
|
directories = new Directories("P2P_JAVA_PROJECT_" + server.getPort());
|
|
|
|
|
directories.createSubdir(logDir);
|
|
|
|
|
loggerServer = new Logger(directories.getDataHomeDirectory() + logDir + "server.log", DEBUG);
|
|
|
|
|
loggerClient = new Logger(directories.getDataHomeDirectory() + logDir + "client.log", DEBUG);
|
|
|
|
|
directories.createSubdir(partsDir);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.hostnameServer = hostnameServer;
|
|
|
|
|
this.hostnameTracker = hostnameTracker;
|
|
|
|
|
this.portServer = portServer;
|
|
|
|
|