diff options
| author | Nils Schwabe | 2014-07-10 16:08:36 +0200 |
|---|---|---|
| committer | Nils Schwabe | 2014-07-10 16:08:36 +0200 |
| commit | c89abbfa830876b7298eb96896a642bc74589651 (patch) | |
| tree | ee3b0707be612d9147d23632713c61c52c6d27be /src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java | |
| parent | Remove unintentionally added f3 docs (diff) | |
| download | masterserver-c89abbfa830876b7298eb96896a642bc74589651.tar.gz masterserver-c89abbfa830876b7298eb96896a642bc74589651.tar.xz masterserver-c89abbfa830876b7298eb96896a642bc74589651.zip | |
Add some better thread synchonization
Restructure some classes
Fix small connection issues
Diffstat (limited to 'src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java')
| -rw-r--r-- | src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java b/src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java deleted file mode 100644 index aeba3b9..0000000 --- a/src/main/java/org/openslx/imagemaster/serverconnection/ConnectionData.java +++ /dev/null @@ -1,45 +0,0 @@ -package org.openslx.imagemaster.serverconnection; - -import org.openslx.filetransfer.Listener; - -public class ConnectionData -{ - /** - * Where the file is stored locally. - */ - protected final String filepath; - - /** - * Type of this connection. - * True if uploading, false if downloading - */ - protected final boolean type; - public final static boolean UPLOADING = true; - public final static boolean DOWNLOADING = false; - - /** - * The active listener thread that listens for incoming connections. - */ - protected final Listener listenerThread; - - /** - * Create a new connection data - * @param filepath Where the file is stored locally - * @param type True if uploading, false if downloading - * @param listenerThread The active listener thread that listens for incoming connections - */ - protected ConnectionData(String filepath, boolean type, Listener listenerThread) - { - this.filepath = filepath; - this.type = type; - this.listenerThread = listenerThread; - } - - /** - * The port where this connection is running. - * @return The port where this connection is running. - */ - protected int getPort() { - return this.listenerThread.getPort(); - } -} |
