public class ClientP2PGUI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
DEBUG |
private Directories |
directories |
private java.lang.String |
hostnameServer |
private java.lang.String |
hostnameTracker |
private java.lang.String |
logDir |
private Logger |
loggerClient |
private Logger |
loggerServer |
private java.lang.String |
partsDir |
private int |
portServer |
private int |
portTracker |
private java.lang.String |
protocolP2P |
private HostItem |
server |
private HostItem |
tracker |
Constructor and Description |
---|
ClientP2PGUI(java.lang.String hostnameServer,
int portServer,
java.lang.String hostnameTracker,
int portTracker,
java.lang.String protocolP2P)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
connect()
Initiate a connection using fields from ArgumentsGen
|
void |
initDirectoriesAndLoggers()
Initialize loggers if directories and logger are null,
else fail silently.
|
private java.lang.String logDir
private java.lang.String partsDir
private Logger loggerServer
private Logger loggerClient
private Directories directories
private HostItem tracker
private HostItem server
static final boolean DEBUG
private java.lang.String hostnameServer
private java.lang.String hostnameTracker
private int portServer
private int portTracker
private java.lang.String protocolP2P
public ClientP2PGUI(java.lang.String hostnameServer, int portServer, java.lang.String hostnameTracker, int portTracker, java.lang.String protocolP2P)
hostnameServer
- hostname to bindportServer
- port to bindhostnameTracker
- hostname of trackerportTracker
- port of trackerprotocolP2P
- protocol used