From 42e8a26381c1cc61bb2299efe0242384c62428a7 Mon Sep 17 00:00:00 2001 From: flavien Date: Mon, 13 Apr 2020 15:43:33 +0200 Subject: [PATCH] updated javadoc --- doc/clientP2P/ClientManagementUDP.html | 339 - doc/clientP2P/ClientP2P.html | 307 - doc/clientP2P/package-summary.html | 173 - doc/clientP2P/package-tree.html | 165 - doc/clientP2P/package-use.html | 149 - doc/exception/InternalError.html | 294 - doc/exception/ProtocolError.html | 294 - doc/exception/class-use/InternalError.html | 249 - doc/exception/class-use/ProtocolError.html | 195 - doc/exception/class-use/SizeError.html | 232 - .../class-use/TransmissionError.html | 195 - doc/exception/class-use/VersionError.html | 195 - doc/exception/package-tree.html | 176 - doc/exception/package-use.html | 225 - doc/index-files/index-1.html | 156 - doc/index-files/index-10.html | 156 - doc/index-files/index-11.html | 158 - doc/index-files/index-12.html | 180 - doc/index-files/index-13.html | 182 - doc/index-files/index-14.html | 180 - doc/index-files/index-15.html | 158 - doc/index-files/index-16.html | 180 - doc/index-files/index-17.html | 160 - doc/index-files/index-2.html | 158 - doc/index-files/index-3.html | 174 - doc/index-files/index-4.html | 160 - doc/index-files/index-5.html | 168 - doc/index-files/index-6.html | 169 - doc/index-files/index-7.html | 188 - doc/index-files/index-8.html | 162 - doc/index-files/index-9.html | 168 - doc/javadoc/allclasses-frame.html | 100 + doc/javadoc/allclasses-index.html | 287 - doc/javadoc/allclasses-noframe.html | 100 + doc/javadoc/allclasses.html | 52 - doc/javadoc/allpackages-index.html | 187 - doc/javadoc/clientP2P/ClientDownload.html | 962 ++ doc/javadoc/clientP2P/ClientDownloadPart.html | 803 ++ .../clientP2P/ClientDownloadPartTCP.html | 477 + .../clientP2P/ClientDownloadPartUDP.html | 477 + doc/javadoc/clientP2P/ClientDownloadTCP.html | 480 + doc/javadoc/clientP2P/ClientDownloadUDP.html | 480 + doc/javadoc/clientP2P/ClientInterface.html | 386 + doc/javadoc/clientP2P/ClientInterfaceCLI.html | 406 + doc/javadoc/clientP2P/ClientManagement.html | 709 + .../clientP2P/ClientManagementTCP.html | 512 + .../clientP2P/ClientManagementUDP.html | 385 +- doc/javadoc/clientP2P/ClientP2P.html | 365 +- .../clientP2P/class-use/ClientDownload.html | 229 + .../class-use/ClientDownloadPart.html | 212 + .../class-use/ClientDownloadPartTCP.html} | 97 +- .../class-use/ClientDownloadPartUDP.html | 124 + .../class-use/ClientDownloadTCP.html | 124 + .../class-use/ClientDownloadUDP.html | 124 + .../clientP2P/class-use/ClientInterface.html | 190 + .../class-use/ClientInterfaceCLI.html | 124 + .../clientP2P/class-use/ClientManagement.html | 260 + .../class-use/ClientManagementTCP.html} | 97 +- .../class-use/ClientManagementUDP.html | 89 +- .../clientP2P/class-use/ClientP2P.html | 89 +- doc/javadoc/clientP2P/package-frame.html | 31 + doc/javadoc/clientP2P/package-summary.html | 155 +- doc/javadoc/clientP2P/package-tree.html | 119 +- doc/javadoc/clientP2P/package-use.html | 163 +- doc/javadoc/constant-values.html | 1129 +- doc/javadoc/deprecated-list.html | 85 +- doc/javadoc/exception/LocalException.html | 306 + doc/javadoc/exception/RemoteException.html | 306 + doc/javadoc/exception/SizeError.html | 295 - doc/javadoc/exception/VersionError.html | 294 - .../exception/class-use/InternalError.html | 249 - .../exception/class-use/LocalException.html | 234 + .../exception/class-use/ProtocolError.html | 195 - .../exception/class-use/RemoteException.html | 192 + .../exception/class-use/SizeError.html | 232 - .../class-use/TransmissionError.html | 195 - .../exception/class-use/VersionError.html | 195 - doc/javadoc/exception/package-frame.html | 21 + doc/javadoc/exception/package-summary.html | 105 +- doc/javadoc/exception/package-tree.html | 100 +- doc/javadoc/exception/package-use.html | 163 +- doc/javadoc/gui/ArgumentsGen.html | 632 + doc/javadoc/gui/ClientInterfaceGUI.html | 395 + doc/javadoc/gui/ClientP2PGUI.html | 514 + doc/javadoc/gui/DownloadFileGUI.html | 497 + doc/javadoc/gui/DownloadSelectionGen.html | 608 + doc/javadoc/gui/ErrorFrame.html | 531 + .../ServerP2P.html => javadoc/gui/Gui.html} | 158 +- doc/javadoc/gui/MainWindow.html | 436 + doc/javadoc/gui/class-use/ArgumentsGen.html | 124 + .../gui/class-use/ClientInterfaceGUI.html | 124 + doc/javadoc/gui/class-use/ClientP2PGUI.html | 124 + .../gui/class-use/DownloadFileGUI.html | 124 + .../gui/class-use/DownloadSelectionGen.html | 124 + doc/javadoc/gui/class-use/ErrorFrame.html | 124 + doc/javadoc/gui/class-use/Gui.html | 124 + doc/javadoc/gui/class-use/MainWindow.html | 124 + doc/javadoc/gui/package-frame.html | 27 + doc/javadoc/gui/package-summary.html | 178 + doc/javadoc/gui/package-tree.html | 176 + doc/{tools => javadoc/gui}/package-use.html | 93 +- doc/javadoc/help-doc.html | 164 +- doc/javadoc/index-files/index-1.html | 111 +- doc/javadoc/index-files/index-10.html | 153 +- doc/javadoc/index-files/index-11.html | 183 +- doc/javadoc/index-files/index-12.html | 141 +- doc/javadoc/index-files/index-13.html | 131 +- doc/javadoc/index-files/index-14.html | 133 +- doc/javadoc/index-files/index-15.html | 227 +- doc/javadoc/index-files/index-16.html | 307 +- doc/javadoc/index-files/index-17.html | 448 +- doc/javadoc/index-files/index-18.html | 320 + doc/javadoc/index-files/index-19.html | 165 + doc/javadoc/index-files/index-2.html | 101 +- doc/javadoc/index-files/index-20.html | 175 + doc/javadoc/index-files/index-21.html | 329 + doc/javadoc/index-files/index-3.html | 451 +- doc/javadoc/index-files/index-4.html | 183 +- doc/javadoc/index-files/index-5.html | 105 +- doc/javadoc/index-files/index-6.html | 197 +- doc/javadoc/index-files/index-7.html | 381 +- doc/javadoc/index-files/index-8.html | 231 +- doc/javadoc/index-files/index-9.html | 175 +- doc/javadoc/index.html | 233 +- doc/javadoc/jquery/external/jquery/jquery.js | 10364 -------------- .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 335 -> 0 bytes .../images/ui-bg_glass_65_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 332 -> 0 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 280 -> 0 bytes .../jquery/images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes .../jquery/images/ui-icons_2e83ff_256x240.png | Bin 4549 -> 0 bytes .../jquery/images/ui-icons_454545_256x240.png | Bin 6992 -> 0 bytes .../jquery/images/ui-icons_888888_256x240.png | Bin 6999 -> 0 bytes .../jquery/images/ui-icons_cd0a0a_256x240.png | Bin 4549 -> 0 bytes doc/javadoc/jquery/jquery-3.3.1.js | 10364 -------------- doc/javadoc/jquery/jquery-migrate-3.0.1.js | 628 - doc/javadoc/jquery/jquery-ui.css | 582 - doc/javadoc/jquery/jquery-ui.js | 2659 ---- doc/javadoc/jquery/jquery-ui.min.css | 7 - doc/javadoc/jquery/jquery-ui.min.js | 6 - doc/javadoc/jquery/jquery-ui.structure.css | 156 - .../jquery/jquery-ui.structure.min.css | 5 - .../jquery/jszip-utils/dist/jszip-utils-ie.js | 56 - .../jszip-utils/dist/jszip-utils-ie.min.js | 10 - .../jquery/jszip-utils/dist/jszip-utils.js | 118 - .../jszip-utils/dist/jszip-utils.min.js | 10 - doc/javadoc/jquery/jszip/dist/jszip.js | 11623 ---------------- doc/javadoc/jquery/jszip/dist/jszip.min.js | 15 - .../InternalError.html | 181 +- .../ProtocolError.html | 181 +- .../localException}/SizeError.html | 183 +- doc/javadoc/localException/SocketClosed.html | 307 + .../TransmissionError.html | 181 +- .../localException}/VersionError.html | 181 +- .../class-use/InternalError.html | 786 ++ .../class-use/ProtocolError.html | 408 + .../localException/class-use/SizeError.html | 428 + .../class-use/SocketClosed.html | 225 + .../class-use/TransmissionError.html | 358 + .../class-use/VersionError.html | 278 + doc/javadoc/localException/package-frame.html | 25 + .../localException}/package-summary.html | 109 +- doc/javadoc/localException/package-tree.html | 154 + doc/javadoc/localException/package-use.html | 269 + doc/javadoc/member-search-index.js | 1 - doc/javadoc/overview-frame.html | 29 + doc/javadoc/overview-summary.html | 170 +- doc/javadoc/overview-tree.html | 279 +- doc/javadoc/{element-list => package-list} | 3 + doc/javadoc/package-search-index.js | 1 - doc/javadoc/protocolP2P/CodeType.html | 181 +- doc/javadoc/protocolP2P/Denied.html | 478 + doc/javadoc/protocolP2P/DiscoverRequest.html | 408 + doc/javadoc/protocolP2P/DiscoverResponse.html | 478 + doc/javadoc/protocolP2P/FileList.html | 259 +- doc/javadoc/protocolP2P/FilePart.html | 475 +- doc/javadoc/protocolP2P/HashAlgorithm.html | 436 + doc/javadoc/protocolP2P/HashRequest.html | 478 + doc/javadoc/protocolP2P/HashResponse.html | 480 + doc/javadoc/protocolP2P/LoadRequest.html | 441 +- doc/javadoc/protocolP2P/Payload.html | 355 +- .../protocolP2P/ProtocolP2PDatagram.html | 437 - .../protocolP2P/ProtocolP2PPacket.html | 598 + .../protocolP2P/ProtocolP2PPacketTCP.html | 664 + .../protocolP2P/ProtocolP2PPacketUDP.html | 796 ++ doc/javadoc/protocolP2P/RatioRequest.html | 425 + doc/javadoc/protocolP2P/RatioResponse.html | 548 + doc/javadoc/protocolP2P/Register.html | 425 + .../protocolP2P/RequestResponseCode.html | 476 +- doc/javadoc/protocolP2P/SizeRequest.html | 408 + doc/javadoc/protocolP2P/SizeResponse.html | 478 + doc/javadoc/protocolP2P/Unregister.html | 425 + doc/javadoc/protocolP2P/UpdateRatio.html | 548 + .../protocolP2P/class-use/CodeType.html | 144 +- doc/javadoc/protocolP2P/class-use/Denied.html | 124 + .../class-use/DiscoverRequest.html | 124 + .../class-use/DiscoverResponse.html | 124 + .../protocolP2P/class-use/FileList.html | 89 +- .../protocolP2P/class-use/FilePart.html | 89 +- .../protocolP2P/class-use/HashAlgorithm.html | 283 + .../protocolP2P/class-use/HashRequest.html | 124 + .../protocolP2P/class-use/HashResponse.html | 124 + .../protocolP2P/class-use/LoadRequest.html | 89 +- .../protocolP2P/class-use/Payload.html | 400 +- .../class-use/ProtocolP2PDatagram.html | 213 - .../class-use/ProtocolP2PPacket.html | 551 + .../class-use/ProtocolP2PPacketTCP.html | 124 + .../class-use/ProtocolP2PPacketUDP.html | 124 + .../protocolP2P/class-use/RatioRequest.html | 124 + .../protocolP2P/class-use/RatioResponse.html | 124 + .../protocolP2P/class-use/Register.html | 124 + .../class-use/RequestResponseCode.html | 169 +- .../protocolP2P/class-use/SizeRequest.html | 124 + .../protocolP2P/class-use/SizeResponse.html | 124 + .../protocolP2P/class-use/Unregister.html | 124 + .../protocolP2P/class-use/UpdateRatio.html | 124 + doc/javadoc/protocolP2P/package-frame.html | 44 + doc/javadoc/protocolP2P/package-summary.html | 199 +- doc/javadoc/protocolP2P/package-tree.html | 127 +- doc/javadoc/protocolP2P/package-use.html | 230 +- .../remoteException/EmptyDirectory.html | 177 +- doc/javadoc/remoteException/EmptyFile.html | 177 +- .../remoteException/InternalRemoteError.html | 177 +- doc/javadoc/remoteException/NotATracker.html | 307 + doc/javadoc/remoteException/NotFound.html | 177 +- .../remoteException/ProtocolRemoteError.html | 177 +- doc/javadoc/remoteException/UnknownHost.html | 307 + .../remoteException/VersionRemoteError.html | 177 +- .../class-use/EmptyDirectory.html | 151 +- .../remoteException/class-use/EmptyFile.html | 151 +- .../class-use/InternalRemoteError.html | 157 +- .../class-use/NotATracker.html | 178 + .../remoteException/class-use/NotFound.html | 151 +- .../class-use/ProtocolRemoteError.html | 157 +- .../class-use/UnknownHost.html | 202 + .../class-use/VersionRemoteError.html | 157 +- .../remoteException/package-frame.html | 27 + .../remoteException/package-summary.html | 107 +- doc/javadoc/remoteException/package-tree.html | 111 +- doc/javadoc/remoteException/package-use.html | 177 +- doc/javadoc/resources/glass.png | Bin 499 -> 0 bytes doc/javadoc/resources/x.png | Bin 394 -> 0 bytes doc/javadoc/script.js | 121 +- doc/javadoc/search.js | 326 - doc/javadoc/serialized-form.html | 403 +- doc/javadoc/serverP2P/FileWatcher.html | 656 + doc/javadoc/serverP2P/FileWatcherTCP.html | 385 + doc/javadoc/serverP2P/FileWatcherUDP.html | 385 + doc/javadoc/serverP2P/RatioWatcher.html | 639 + doc/javadoc/serverP2P/RatioWatcherTCP.html | 425 + doc/javadoc/serverP2P/RatioWatcherUDP.html | 425 + doc/javadoc/serverP2P/ServerManagement.html | 631 + .../ServerManagementTCP.ClientHandler.html | 353 + .../serverP2P/ServerManagementTCP.html | 513 + .../serverP2P/ServerManagementUDP.html | 350 +- doc/javadoc/serverP2P/ServerP2P.html | 289 +- .../serverP2P/class-use/FileWatcher.html | 185 + .../serverP2P/class-use/FileWatcherTCP.html | 124 + .../serverP2P/class-use/FileWatcherUDP.html | 124 + .../serverP2P/class-use/RatioWatcher.html | 185 + .../serverP2P/class-use/RatioWatcherTCP.html | 124 + .../serverP2P/class-use/RatioWatcherUDP.html | 124 + .../serverP2P/class-use/ServerManagement.html | 172 + .../ServerManagementTCP.ClientHandler.html} | 97 +- .../class-use/ServerManagementTCP.html | 200 + .../class-use/ServerManagementUDP.html | 167 +- .../serverP2P/class-use/ServerP2P.html | 89 +- doc/javadoc/serverP2P/package-frame.html | 29 + doc/javadoc/serverP2P/package-summary.html | 146 +- doc/javadoc/serverP2P/package-tree.html | 115 +- doc/javadoc/serverP2P/package-use.html | 158 +- doc/javadoc/stylesheet.css | 492 +- doc/javadoc/tools/BytesArrayTools.html | 492 +- doc/javadoc/tools/Directories.html | 274 +- doc/javadoc/tools/HostItem.html | 624 + .../tools/LogLevel.html} | 229 +- doc/javadoc/tools/Logger.html | 465 + doc/javadoc/tools/PortRange.html | 422 + .../tools/SearchFile.html} | 196 +- doc/javadoc/tools/ServeErrors.html | 462 + doc/javadoc/tools/ServerPortRange.html | 267 + .../tools/TrackerPortRange.html} | 181 +- .../tools/class-use/BytesArrayTools.html | 89 +- doc/javadoc/tools/class-use/Directories.html | 197 +- doc/javadoc/tools/class-use/HostItem.html | 997 ++ doc/javadoc/tools/class-use/LogLevel.html | 544 + doc/javadoc/tools/class-use/Logger.html | 531 + doc/javadoc/tools/class-use/PortRange.html | 168 + doc/javadoc/tools/class-use/SearchFile.html | 124 + doc/javadoc/tools/class-use/ServeErrors.html | 286 + .../tools/class-use/ServerPortRange.html | 167 + .../tools/class-use/TrackerPortRange.html | 167 + doc/javadoc/tools/package-frame.html | 32 + doc/javadoc/tools/package-summary.html | 144 +- doc/javadoc/tools/package-tree.html | 115 +- doc/javadoc/tools/package-use.html | 302 +- doc/javadoc/tracker/Tracker.html | 382 + doc/javadoc/tracker/TrackerManagement.html | 737 + .../TrackerManagementTCP.ClientHandler.html | 353 + doc/javadoc/tracker/TrackerManagementTCP.html | 501 + doc/javadoc/tracker/TrackerManagementUDP.html | 480 + doc/javadoc/tracker/class-use/Tracker.html | 124 + .../tracker/class-use/TrackerManagement.html | 172 + .../TrackerManagementTCP.ClientHandler.html | 124 + .../class-use/TrackerManagementTCP.html | 124 + .../class-use/TrackerManagementUDP.html | 124 + doc/javadoc/tracker/package-frame.html | 23 + .../tracker}/package-summary.html | 114 +- .../tracker}/package-tree.html | 109 +- doc/javadoc/tracker/package-use.html | 159 + doc/javadoc/type-search-index.js | 1 - doc/jquery/external/jquery/jquery.js | 10364 -------------- .../images/ui-bg_glass_55_fbf9ee_1x400.png | Bin 335 -> 0 bytes .../images/ui-bg_glass_65_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_dadada_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_75_e6e6e6_1x400.png | Bin 262 -> 0 bytes .../images/ui-bg_glass_95_fef1ec_1x400.png | Bin 332 -> 0 bytes .../ui-bg_highlight-soft_75_cccccc_1x100.png | Bin 280 -> 0 bytes doc/jquery/images/ui-icons_222222_256x240.png | Bin 6922 -> 0 bytes doc/jquery/images/ui-icons_2e83ff_256x240.png | Bin 4549 -> 0 bytes doc/jquery/images/ui-icons_454545_256x240.png | Bin 6992 -> 0 bytes doc/jquery/images/ui-icons_888888_256x240.png | Bin 6999 -> 0 bytes doc/jquery/images/ui-icons_cd0a0a_256x240.png | Bin 4549 -> 0 bytes doc/jquery/jquery-3.3.1.js | 10364 -------------- doc/jquery/jquery-migrate-3.0.1.js | 628 - doc/jquery/jquery-ui.css | 582 - doc/jquery/jquery-ui.js | 2659 ---- doc/jquery/jquery-ui.min.css | 7 - doc/jquery/jquery-ui.min.js | 6 - doc/jquery/jquery-ui.structure.css | 156 - doc/jquery/jquery-ui.structure.min.css | 5 - doc/jquery/jszip-utils/dist/jszip-utils-ie.js | 56 - .../jszip-utils/dist/jszip-utils-ie.min.js | 10 - doc/jquery/jszip-utils/dist/jszip-utils.js | 118 - .../jszip-utils/dist/jszip-utils.min.js | 10 - doc/jquery/jszip/dist/jszip.js | 11623 ---------------- doc/jquery/jszip/dist/jszip.min.js | 15 - doc/protocolP2P/FileList.html | 345 - doc/protocolP2P/FilePart.html | 415 - doc/protocolP2P/LoadRequest.html | 343 - doc/protocolP2P/Payload.html | 335 - doc/protocolP2P/ProtocolP2PDatagram.html | 437 - doc/protocolP2P/RequestResponseCode.html | 546 - doc/protocolP2P/class-use/CodeType.html | 218 - doc/protocolP2P/class-use/FileList.html | 149 - doc/protocolP2P/class-use/FilePart.html | 149 - doc/protocolP2P/class-use/LoadRequest.html | 149 - doc/protocolP2P/class-use/Payload.html | 241 - .../class-use/ProtocolP2PDatagram.html | 213 - .../class-use/RequestResponseCode.html | 225 - doc/protocolP2P/package-summary.html | 216 - doc/protocolP2P/package-tree.html | 186 - doc/protocolP2P/package-use.html | 204 - doc/remoteException/EmptyDirectory.html | 294 - doc/remoteException/EmptyFile.html | 294 - doc/remoteException/InternalRemoteError.html | 294 - doc/remoteException/NotFound.html | 294 - doc/remoteException/ProtocolRemoteError.html | 294 - doc/remoteException/VersionRemoteError.html | 294 - .../class-use/EmptyDirectory.html | 195 - doc/remoteException/class-use/EmptyFile.html | 195 - .../class-use/InternalRemoteError.html | 195 - doc/remoteException/class-use/NotFound.html | 195 - .../class-use/ProtocolRemoteError.html | 195 - .../class-use/VersionRemoteError.html | 195 - doc/remoteException/package-summary.html | 187 - doc/remoteException/package-tree.html | 177 - doc/remoteException/package-use.html | 204 - doc/resources/glass.png | Bin 499 -> 0 bytes doc/resources/x.png | Bin 394 -> 0 bytes doc/serverP2P/ServerManagementUDP.html | 336 - doc/serverP2P/class-use/ServerP2P.html | 149 - doc/serverP2P/package-summary.html | 173 - doc/serverP2P/package-tree.html | 165 - doc/serverP2P/package-use.html | 149 - doc/tools/BytesArrayTools.html | 412 - doc/tools/class-use/BytesArrayTools.html | 149 - doc/tools/class-use/Directories.html | 149 - 380 files changed, 55798 insertions(+), 99613 deletions(-) delete mode 100644 doc/clientP2P/ClientManagementUDP.html delete mode 100644 doc/clientP2P/ClientP2P.html delete mode 100644 doc/clientP2P/package-summary.html delete mode 100644 doc/clientP2P/package-tree.html delete mode 100644 doc/clientP2P/package-use.html delete mode 100644 doc/exception/InternalError.html delete mode 100644 doc/exception/ProtocolError.html delete mode 100644 doc/exception/class-use/InternalError.html delete mode 100644 doc/exception/class-use/ProtocolError.html delete mode 100644 doc/exception/class-use/SizeError.html delete mode 100644 doc/exception/class-use/TransmissionError.html delete mode 100644 doc/exception/class-use/VersionError.html delete mode 100644 doc/exception/package-tree.html delete mode 100644 doc/exception/package-use.html delete mode 100644 doc/index-files/index-1.html delete mode 100644 doc/index-files/index-10.html delete mode 100644 doc/index-files/index-11.html delete mode 100644 doc/index-files/index-12.html delete mode 100644 doc/index-files/index-13.html delete mode 100644 doc/index-files/index-14.html delete mode 100644 doc/index-files/index-15.html delete mode 100644 doc/index-files/index-16.html delete mode 100644 doc/index-files/index-17.html delete mode 100644 doc/index-files/index-2.html delete mode 100644 doc/index-files/index-3.html delete mode 100644 doc/index-files/index-4.html delete mode 100644 doc/index-files/index-5.html delete mode 100644 doc/index-files/index-6.html delete mode 100644 doc/index-files/index-7.html delete mode 100644 doc/index-files/index-8.html delete mode 100644 doc/index-files/index-9.html create mode 100644 doc/javadoc/allclasses-frame.html delete mode 100644 doc/javadoc/allclasses-index.html create mode 100644 doc/javadoc/allclasses-noframe.html delete mode 100644 doc/javadoc/allclasses.html delete mode 100644 doc/javadoc/allpackages-index.html create mode 100644 doc/javadoc/clientP2P/ClientDownload.html create mode 100644 doc/javadoc/clientP2P/ClientDownloadPart.html create mode 100644 doc/javadoc/clientP2P/ClientDownloadPartTCP.html create mode 100644 doc/javadoc/clientP2P/ClientDownloadPartUDP.html create mode 100644 doc/javadoc/clientP2P/ClientDownloadTCP.html create mode 100644 doc/javadoc/clientP2P/ClientDownloadUDP.html create mode 100644 doc/javadoc/clientP2P/ClientInterface.html create mode 100644 doc/javadoc/clientP2P/ClientInterfaceCLI.html create mode 100644 doc/javadoc/clientP2P/ClientManagement.html create mode 100644 doc/javadoc/clientP2P/ClientManagementTCP.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientDownload.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientDownloadPart.html rename doc/{clientP2P/class-use/ClientP2P.html => javadoc/clientP2P/class-use/ClientDownloadPartTCP.html} (50%) create mode 100644 doc/javadoc/clientP2P/class-use/ClientDownloadPartUDP.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientDownloadTCP.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientDownloadUDP.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientInterface.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientInterfaceCLI.html create mode 100644 doc/javadoc/clientP2P/class-use/ClientManagement.html rename doc/{clientP2P/class-use/ClientManagementUDP.html => javadoc/clientP2P/class-use/ClientManagementTCP.html} (51%) create mode 100644 doc/javadoc/clientP2P/package-frame.html create mode 100644 doc/javadoc/exception/LocalException.html create mode 100644 doc/javadoc/exception/RemoteException.html delete mode 100644 doc/javadoc/exception/SizeError.html delete mode 100644 doc/javadoc/exception/VersionError.html delete mode 100644 doc/javadoc/exception/class-use/InternalError.html create mode 100644 doc/javadoc/exception/class-use/LocalException.html delete mode 100644 doc/javadoc/exception/class-use/ProtocolError.html create mode 100644 doc/javadoc/exception/class-use/RemoteException.html delete mode 100644 doc/javadoc/exception/class-use/SizeError.html delete mode 100644 doc/javadoc/exception/class-use/TransmissionError.html delete mode 100644 doc/javadoc/exception/class-use/VersionError.html create mode 100644 doc/javadoc/exception/package-frame.html create mode 100644 doc/javadoc/gui/ArgumentsGen.html create mode 100644 doc/javadoc/gui/ClientInterfaceGUI.html create mode 100644 doc/javadoc/gui/ClientP2PGUI.html create mode 100644 doc/javadoc/gui/DownloadFileGUI.html create mode 100644 doc/javadoc/gui/DownloadSelectionGen.html create mode 100644 doc/javadoc/gui/ErrorFrame.html rename doc/{serverP2P/ServerP2P.html => javadoc/gui/Gui.html} (58%) create mode 100644 doc/javadoc/gui/MainWindow.html create mode 100644 doc/javadoc/gui/class-use/ArgumentsGen.html create mode 100644 doc/javadoc/gui/class-use/ClientInterfaceGUI.html create mode 100644 doc/javadoc/gui/class-use/ClientP2PGUI.html create mode 100644 doc/javadoc/gui/class-use/DownloadFileGUI.html create mode 100644 doc/javadoc/gui/class-use/DownloadSelectionGen.html create mode 100644 doc/javadoc/gui/class-use/ErrorFrame.html create mode 100644 doc/javadoc/gui/class-use/Gui.html create mode 100644 doc/javadoc/gui/class-use/MainWindow.html create mode 100644 doc/javadoc/gui/package-frame.html create mode 100644 doc/javadoc/gui/package-summary.html create mode 100644 doc/javadoc/gui/package-tree.html rename doc/{tools => javadoc/gui}/package-use.html (51%) create mode 100644 doc/javadoc/index-files/index-18.html create mode 100644 doc/javadoc/index-files/index-19.html create mode 100644 doc/javadoc/index-files/index-20.html create mode 100644 doc/javadoc/index-files/index-21.html delete mode 100644 doc/javadoc/jquery/external/jquery/jquery.js delete mode 100644 doc/javadoc/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png delete mode 100644 doc/javadoc/jquery/images/ui-bg_glass_65_dadada_1x400.png delete mode 100644 doc/javadoc/jquery/images/ui-bg_glass_75_dadada_1x400.png delete mode 100644 doc/javadoc/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png delete mode 100644 doc/javadoc/jquery/images/ui-bg_glass_95_fef1ec_1x400.png delete mode 100644 doc/javadoc/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png delete mode 100644 doc/javadoc/jquery/images/ui-icons_222222_256x240.png delete mode 100644 doc/javadoc/jquery/images/ui-icons_2e83ff_256x240.png delete mode 100644 doc/javadoc/jquery/images/ui-icons_454545_256x240.png delete mode 100644 doc/javadoc/jquery/images/ui-icons_888888_256x240.png delete mode 100644 doc/javadoc/jquery/images/ui-icons_cd0a0a_256x240.png delete mode 100644 doc/javadoc/jquery/jquery-3.3.1.js delete mode 100644 doc/javadoc/jquery/jquery-migrate-3.0.1.js delete mode 100644 doc/javadoc/jquery/jquery-ui.css delete mode 100644 doc/javadoc/jquery/jquery-ui.js delete mode 100644 doc/javadoc/jquery/jquery-ui.min.css delete mode 100644 doc/javadoc/jquery/jquery-ui.min.js delete mode 100644 doc/javadoc/jquery/jquery-ui.structure.css delete mode 100644 doc/javadoc/jquery/jquery-ui.structure.min.css delete mode 100644 doc/javadoc/jquery/jszip-utils/dist/jszip-utils-ie.js delete mode 100644 doc/javadoc/jquery/jszip-utils/dist/jszip-utils-ie.min.js delete mode 100644 doc/javadoc/jquery/jszip-utils/dist/jszip-utils.js delete mode 100644 doc/javadoc/jquery/jszip-utils/dist/jszip-utils.min.js delete mode 100644 doc/javadoc/jquery/jszip/dist/jszip.js delete mode 100644 doc/javadoc/jquery/jszip/dist/jszip.min.js rename doc/javadoc/{exception => localException}/InternalError.html (53%) rename doc/javadoc/{exception => localException}/ProtocolError.html (52%) rename doc/{exception => javadoc/localException}/SizeError.html (51%) create mode 100644 doc/javadoc/localException/SocketClosed.html rename doc/javadoc/{exception => localException}/TransmissionError.html (52%) rename doc/{exception => javadoc/localException}/VersionError.html (53%) create mode 100644 doc/javadoc/localException/class-use/InternalError.html create mode 100644 doc/javadoc/localException/class-use/ProtocolError.html create mode 100644 doc/javadoc/localException/class-use/SizeError.html create mode 100644 doc/javadoc/localException/class-use/SocketClosed.html create mode 100644 doc/javadoc/localException/class-use/TransmissionError.html create mode 100644 doc/javadoc/localException/class-use/VersionError.html create mode 100644 doc/javadoc/localException/package-frame.html rename doc/{exception => javadoc/localException}/package-summary.html (51%) create mode 100644 doc/javadoc/localException/package-tree.html create mode 100644 doc/javadoc/localException/package-use.html delete mode 100644 doc/javadoc/member-search-index.js create mode 100644 doc/javadoc/overview-frame.html rename doc/javadoc/{element-list => package-list} (70%) delete mode 100644 doc/javadoc/package-search-index.js create mode 100644 doc/javadoc/protocolP2P/Denied.html create mode 100644 doc/javadoc/protocolP2P/DiscoverRequest.html create mode 100644 doc/javadoc/protocolP2P/DiscoverResponse.html create mode 100644 doc/javadoc/protocolP2P/HashAlgorithm.html create mode 100644 doc/javadoc/protocolP2P/HashRequest.html create mode 100644 doc/javadoc/protocolP2P/HashResponse.html delete mode 100644 doc/javadoc/protocolP2P/ProtocolP2PDatagram.html create mode 100644 doc/javadoc/protocolP2P/ProtocolP2PPacket.html create mode 100644 doc/javadoc/protocolP2P/ProtocolP2PPacketTCP.html create mode 100644 doc/javadoc/protocolP2P/ProtocolP2PPacketUDP.html create mode 100644 doc/javadoc/protocolP2P/RatioRequest.html create mode 100644 doc/javadoc/protocolP2P/RatioResponse.html create mode 100644 doc/javadoc/protocolP2P/Register.html create mode 100644 doc/javadoc/protocolP2P/SizeRequest.html create mode 100644 doc/javadoc/protocolP2P/SizeResponse.html create mode 100644 doc/javadoc/protocolP2P/Unregister.html create mode 100644 doc/javadoc/protocolP2P/UpdateRatio.html create mode 100644 doc/javadoc/protocolP2P/class-use/Denied.html create mode 100644 doc/javadoc/protocolP2P/class-use/DiscoverRequest.html create mode 100644 doc/javadoc/protocolP2P/class-use/DiscoverResponse.html create mode 100644 doc/javadoc/protocolP2P/class-use/HashAlgorithm.html create mode 100644 doc/javadoc/protocolP2P/class-use/HashRequest.html create mode 100644 doc/javadoc/protocolP2P/class-use/HashResponse.html delete mode 100644 doc/javadoc/protocolP2P/class-use/ProtocolP2PDatagram.html create mode 100644 doc/javadoc/protocolP2P/class-use/ProtocolP2PPacket.html create mode 100644 doc/javadoc/protocolP2P/class-use/ProtocolP2PPacketTCP.html create mode 100644 doc/javadoc/protocolP2P/class-use/ProtocolP2PPacketUDP.html create mode 100644 doc/javadoc/protocolP2P/class-use/RatioRequest.html create mode 100644 doc/javadoc/protocolP2P/class-use/RatioResponse.html create mode 100644 doc/javadoc/protocolP2P/class-use/Register.html create mode 100644 doc/javadoc/protocolP2P/class-use/SizeRequest.html create mode 100644 doc/javadoc/protocolP2P/class-use/SizeResponse.html create mode 100644 doc/javadoc/protocolP2P/class-use/Unregister.html create mode 100644 doc/javadoc/protocolP2P/class-use/UpdateRatio.html create mode 100644 doc/javadoc/protocolP2P/package-frame.html create mode 100644 doc/javadoc/remoteException/NotATracker.html create mode 100644 doc/javadoc/remoteException/UnknownHost.html create mode 100644 doc/javadoc/remoteException/class-use/NotATracker.html create mode 100644 doc/javadoc/remoteException/class-use/UnknownHost.html create mode 100644 doc/javadoc/remoteException/package-frame.html delete mode 100644 doc/javadoc/resources/glass.png delete mode 100644 doc/javadoc/resources/x.png delete mode 100644 doc/javadoc/search.js create mode 100644 doc/javadoc/serverP2P/FileWatcher.html create mode 100644 doc/javadoc/serverP2P/FileWatcherTCP.html create mode 100644 doc/javadoc/serverP2P/FileWatcherUDP.html create mode 100644 doc/javadoc/serverP2P/RatioWatcher.html create mode 100644 doc/javadoc/serverP2P/RatioWatcherTCP.html create mode 100644 doc/javadoc/serverP2P/RatioWatcherUDP.html create mode 100644 doc/javadoc/serverP2P/ServerManagement.html create mode 100644 doc/javadoc/serverP2P/ServerManagementTCP.ClientHandler.html create mode 100644 doc/javadoc/serverP2P/ServerManagementTCP.html create mode 100644 doc/javadoc/serverP2P/class-use/FileWatcher.html create mode 100644 doc/javadoc/serverP2P/class-use/FileWatcherTCP.html create mode 100644 doc/javadoc/serverP2P/class-use/FileWatcherUDP.html create mode 100644 doc/javadoc/serverP2P/class-use/RatioWatcher.html create mode 100644 doc/javadoc/serverP2P/class-use/RatioWatcherTCP.html create mode 100644 doc/javadoc/serverP2P/class-use/RatioWatcherUDP.html create mode 100644 doc/javadoc/serverP2P/class-use/ServerManagement.html rename doc/{serverP2P/class-use/ServerManagementUDP.html => javadoc/serverP2P/class-use/ServerManagementTCP.ClientHandler.html} (51%) create mode 100644 doc/javadoc/serverP2P/class-use/ServerManagementTCP.html create mode 100644 doc/javadoc/serverP2P/package-frame.html create mode 100644 doc/javadoc/tools/HostItem.html rename doc/{protocolP2P/CodeType.html => javadoc/tools/LogLevel.html} (55%) create mode 100644 doc/javadoc/tools/Logger.html create mode 100644 doc/javadoc/tools/PortRange.html rename doc/{tools/Directories.html => javadoc/tools/SearchFile.html} (53%) create mode 100644 doc/javadoc/tools/ServeErrors.html create mode 100644 doc/javadoc/tools/ServerPortRange.html rename doc/{exception/TransmissionError.html => javadoc/tools/TrackerPortRange.html} (50%) create mode 100644 doc/javadoc/tools/class-use/HostItem.html create mode 100644 doc/javadoc/tools/class-use/LogLevel.html create mode 100644 doc/javadoc/tools/class-use/Logger.html create mode 100644 doc/javadoc/tools/class-use/PortRange.html create mode 100644 doc/javadoc/tools/class-use/SearchFile.html create mode 100644 doc/javadoc/tools/class-use/ServeErrors.html create mode 100644 doc/javadoc/tools/class-use/ServerPortRange.html create mode 100644 doc/javadoc/tools/class-use/TrackerPortRange.html create mode 100644 doc/javadoc/tools/package-frame.html create mode 100644 doc/javadoc/tracker/Tracker.html create mode 100644 doc/javadoc/tracker/TrackerManagement.html create mode 100644 doc/javadoc/tracker/TrackerManagementTCP.ClientHandler.html create mode 100644 doc/javadoc/tracker/TrackerManagementTCP.html create mode 100644 doc/javadoc/tracker/TrackerManagementUDP.html create mode 100644 doc/javadoc/tracker/class-use/Tracker.html create mode 100644 doc/javadoc/tracker/class-use/TrackerManagement.html create mode 100644 doc/javadoc/tracker/class-use/TrackerManagementTCP.ClientHandler.html create mode 100644 doc/javadoc/tracker/class-use/TrackerManagementTCP.html create mode 100644 doc/javadoc/tracker/class-use/TrackerManagementUDP.html create mode 100644 doc/javadoc/tracker/package-frame.html rename doc/{tools => javadoc/tracker}/package-summary.html (53%) rename doc/{tools => javadoc/tracker}/package-tree.html (51%) create mode 100644 doc/javadoc/tracker/package-use.html delete mode 100644 doc/javadoc/type-search-index.js delete mode 100644 doc/jquery/external/jquery/jquery.js delete mode 100644 doc/jquery/images/ui-bg_glass_55_fbf9ee_1x400.png delete mode 100644 doc/jquery/images/ui-bg_glass_65_dadada_1x400.png delete mode 100644 doc/jquery/images/ui-bg_glass_75_dadada_1x400.png delete mode 100644 doc/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png delete mode 100644 doc/jquery/images/ui-bg_glass_95_fef1ec_1x400.png delete mode 100644 doc/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png delete mode 100644 doc/jquery/images/ui-icons_222222_256x240.png delete mode 100644 doc/jquery/images/ui-icons_2e83ff_256x240.png delete mode 100644 doc/jquery/images/ui-icons_454545_256x240.png delete mode 100644 doc/jquery/images/ui-icons_888888_256x240.png delete mode 100644 doc/jquery/images/ui-icons_cd0a0a_256x240.png delete mode 100644 doc/jquery/jquery-3.3.1.js delete mode 100644 doc/jquery/jquery-migrate-3.0.1.js delete mode 100644 doc/jquery/jquery-ui.css delete mode 100644 doc/jquery/jquery-ui.js delete mode 100644 doc/jquery/jquery-ui.min.css delete mode 100644 doc/jquery/jquery-ui.min.js delete mode 100644 doc/jquery/jquery-ui.structure.css delete mode 100644 doc/jquery/jquery-ui.structure.min.css delete mode 100644 doc/jquery/jszip-utils/dist/jszip-utils-ie.js delete mode 100644 doc/jquery/jszip-utils/dist/jszip-utils-ie.min.js delete mode 100644 doc/jquery/jszip-utils/dist/jszip-utils.js delete mode 100644 doc/jquery/jszip-utils/dist/jszip-utils.min.js delete mode 100644 doc/jquery/jszip/dist/jszip.js delete mode 100644 doc/jquery/jszip/dist/jszip.min.js delete mode 100644 doc/protocolP2P/FileList.html delete mode 100644 doc/protocolP2P/FilePart.html delete mode 100644 doc/protocolP2P/LoadRequest.html delete mode 100644 doc/protocolP2P/Payload.html delete mode 100644 doc/protocolP2P/ProtocolP2PDatagram.html delete mode 100644 doc/protocolP2P/RequestResponseCode.html delete mode 100644 doc/protocolP2P/class-use/CodeType.html delete mode 100644 doc/protocolP2P/class-use/FileList.html delete mode 100644 doc/protocolP2P/class-use/FilePart.html delete mode 100644 doc/protocolP2P/class-use/LoadRequest.html delete mode 100644 doc/protocolP2P/class-use/Payload.html delete mode 100644 doc/protocolP2P/class-use/ProtocolP2PDatagram.html delete mode 100644 doc/protocolP2P/class-use/RequestResponseCode.html delete mode 100644 doc/protocolP2P/package-summary.html delete mode 100644 doc/protocolP2P/package-tree.html delete mode 100644 doc/protocolP2P/package-use.html delete mode 100644 doc/remoteException/EmptyDirectory.html delete mode 100644 doc/remoteException/EmptyFile.html delete mode 100644 doc/remoteException/InternalRemoteError.html delete mode 100644 doc/remoteException/NotFound.html delete mode 100644 doc/remoteException/ProtocolRemoteError.html delete mode 100644 doc/remoteException/VersionRemoteError.html delete mode 100644 doc/remoteException/class-use/EmptyDirectory.html delete mode 100644 doc/remoteException/class-use/EmptyFile.html delete mode 100644 doc/remoteException/class-use/InternalRemoteError.html delete mode 100644 doc/remoteException/class-use/NotFound.html delete mode 100644 doc/remoteException/class-use/ProtocolRemoteError.html delete mode 100644 doc/remoteException/class-use/VersionRemoteError.html delete mode 100644 doc/remoteException/package-summary.html delete mode 100644 doc/remoteException/package-tree.html delete mode 100644 doc/remoteException/package-use.html delete mode 100644 doc/resources/glass.png delete mode 100644 doc/resources/x.png delete mode 100644 doc/serverP2P/ServerManagementUDP.html delete mode 100644 doc/serverP2P/class-use/ServerP2P.html delete mode 100644 doc/serverP2P/package-summary.html delete mode 100644 doc/serverP2P/package-tree.html delete mode 100644 doc/serverP2P/package-use.html delete mode 100644 doc/tools/BytesArrayTools.html delete mode 100644 doc/tools/class-use/BytesArrayTools.html delete mode 100644 doc/tools/class-use/Directories.html diff --git a/doc/clientP2P/ClientManagementUDP.html b/doc/clientP2P/ClientManagementUDP.html deleted file mode 100644 index 8af6803..0000000 --- a/doc/clientP2P/ClientManagementUDP.html +++ /dev/null @@ -1,339 +0,0 @@ - - - - - -ClientManagementUDP - - - - - - - - - - - - - - - -
- -
- -
-
-
Package clientP2P
-

Class ClientManagementUDP

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • clientP2P.ClientManagementUDP
    • -
    -
  • -
-
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.lang.Runnable
    -
    -
    -
    public class ClientManagementUDP
    -extends java.lang.Object
    -implements java.lang.Runnable
    -
    Implementation of P2P-JAVA-PROJECT CLIENT
    -
    -
    Version:
    -
    1.0
    -
    Author:
    -
    Louis Royer, Flavien Haas, JS Auge
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - -
      Constructors 
      ConstructorDescription
      ClientManagementUDP​(java.lang.String baseDirectory, - java.lang.String host, - int UDPPort) -
      Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
      -
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - -
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidrun() -
      Implementation of Runnable
      -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ClientManagementUDP

        -
        public ClientManagementUDP​(java.lang.String baseDirectory,
        -                           java.lang.String host,
        -                           int UDPPort)
        -
        Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
        -
        -
        Parameters:
        -
        baseDirectory - the root directory where files are stored
        -
        host - hostname of the server
        -
        UDPPort - the server will listen on this port
        -
        -
      • -
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        run

        -
        public void run()
        -
        Implementation of Runnable
        -
        -
        Specified by:
        -
        run in interface java.lang.Runnable
        -
        -
      • -
      -
    • -
    -
    -
  • -
-
-
-
- - - - diff --git a/doc/clientP2P/ClientP2P.html b/doc/clientP2P/ClientP2P.html deleted file mode 100644 index 157b6f4..0000000 --- a/doc/clientP2P/ClientP2P.html +++ /dev/null @@ -1,307 +0,0 @@ - - - - - -ClientP2P - - - - - - - - - - - - - - - -
- -
- -
-
-
Package clientP2P
-

Class ClientP2P

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • clientP2P.ClientP2P
    • -
    -
  • -
-
-
    -
  • -
    -
    public class ClientP2P
    -extends java.lang.Object
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - -
      Constructors 
      ConstructorDescription
      ClientP2P() 
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - -
      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidmain​(java.lang.String[] args) 
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • -
      -
    • -
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ClientP2P

        -
        public ClientP2P()
        -
      • -
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        main

        -
        public static void main​(java.lang.String[] args)
        -
      • -
      -
    • -
    -
    -
  • -
-
-
-
- - - - diff --git a/doc/clientP2P/package-summary.html b/doc/clientP2P/package-summary.html deleted file mode 100644 index 7b61596..0000000 --- a/doc/clientP2P/package-summary.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - -clientP2P - - - - - - - - - - - - - - - -
- -
-
-
-

Package clientP2P

-
-
-
    -
  • - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    ClientManagementUDP -
    Implementation of P2P-JAVA-PROJECT CLIENT
    -
    ClientP2P 
    -
  • -
-
-
- - - diff --git a/doc/clientP2P/package-tree.html b/doc/clientP2P/package-tree.html deleted file mode 100644 index 857ef3c..0000000 --- a/doc/clientP2P/package-tree.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - -clientP2P Class Hierarchy - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package clientP2P

-Package Hierarchies: - -
-
-
-

Class Hierarchy

- -
-
-
- - - diff --git a/doc/clientP2P/package-use.html b/doc/clientP2P/package-use.html deleted file mode 100644 index 357bd81..0000000 --- a/doc/clientP2P/package-use.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - -Uses of Package clientP2P - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
clientP2P

-
-
No usage of clientP2P
-
- - - diff --git a/doc/exception/InternalError.html b/doc/exception/InternalError.html deleted file mode 100644 index e735ca1..0000000 --- a/doc/exception/InternalError.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - -InternalError - - - - - - - - - - - - - - - -
- -
- -
-
-
Package exception
-

Class InternalError

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • java.lang.Throwable
    • -
    • -
        -
      • java.lang.Exception
      • -
      • -
          -
        • exception.InternalError
        • -
        -
      • -
      -
    • -
    -
  • -
-
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable
    -
    -
    -
    public class InternalError
    -extends java.lang.Exception
    -
    -
    See Also:
    -
    Serialized Form
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - -
      Constructors 
      ConstructorDescription
      InternalError() 
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Summary

      -
        -
      • - - -

        Methods inherited from class java.lang.Throwable

        -addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        InternalError

        -
        public InternalError()
        -
      • -
      -
    • -
    -
    -
  • -
-
-
-
- - - - diff --git a/doc/exception/ProtocolError.html b/doc/exception/ProtocolError.html deleted file mode 100644 index db070b9..0000000 --- a/doc/exception/ProtocolError.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - -ProtocolError - - - - - - - - - - - - - - - -
- -
- -
-
-
Package exception
-

Class ProtocolError

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • java.lang.Throwable
    • -
    • -
        -
      • java.lang.Exception
      • -
      • -
          -
        • exception.ProtocolError
        • -
        -
      • -
      -
    • -
    -
  • -
-
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    java.io.Serializable
    -
    -
    -
    public class ProtocolError
    -extends java.lang.Exception
    -
    -
    See Also:
    -
    Serialized Form
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Summary

      - - - - - - - - - - -
      Constructors 
      ConstructorDescription
      ProtocolError() 
      -
    • -
    -
    - -
    -
      -
    • - - -

      Method Summary

      -
        -
      • - - -

        Methods inherited from class java.lang.Throwable

        -addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • -
      -
        -
      • - - -

        Methods inherited from class java.lang.Object

        -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • -
      -
    • -
    -
    -
  • -
-
-
-
    -
  • - -
    -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ProtocolError

        -
        public ProtocolError()
        -
      • -
      -
    • -
    -
    -
  • -
-
-
-
- - - - diff --git a/doc/exception/class-use/InternalError.html b/doc/exception/class-use/InternalError.html deleted file mode 100644 index 4970a81..0000000 --- a/doc/exception/class-use/InternalError.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - -Uses of Class exception.InternalError - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
exception.InternalError

-
-
-
    -
  • - - - - - - - - - - - - -
    Packages that use InternalError 
    PackageDescription
    protocolP2P 
    -
  • -
  • -
      -
    • -
      - - -

      Uses of InternalError in protocolP2P

      - - - - - - - - - - - - - - - - - - - - - - - - -
      Methods in protocolP2P that throw InternalError 
      Modifier and TypeMethodDescription
      static ProtocolP2PDatagramProtocolP2PDatagram.receive​(java.net.DatagramSocket socket) -
      Receive datagram on socket
      -
      voidProtocolP2PDatagram.send​(java.net.DatagramSocket socket, - java.lang.String host, - int port) -
      Send datagram on socket (from client)
      -
      voidProtocolP2PDatagram.send​(java.net.DatagramSocket socket, - ProtocolP2PDatagram received) -
      Send datagram on socket (from server, as a response)
      -
      - - - - - - - - - - - - - - - - - - - - - - - - -
      Constructors in protocolP2P that throw InternalError 
      ConstructorDescription
      FileList​(java.lang.String[] fileList) -
      Constructor (typically used by the server) with an ArrayList parameter containing - filenames.
      -
      FilePart​(java.lang.String filename, - long totalSize, - long offset, - byte[] partialContent) -
      Constructor (typically used by server) with informations about file part to send as parameters.
      -
      LoadRequest​(java.lang.String filename) -
      Constructor (typically used by the server) with a filename parameter.
      -
      Payload​(RequestResponseCode requestResponseCode) -
      Consructor used to create Payload with a payload size of zero using a RRCode.
      -
      -
      -
    • -
    -
  • -
-
-
- - - diff --git a/doc/exception/class-use/ProtocolError.html b/doc/exception/class-use/ProtocolError.html deleted file mode 100644 index 66d7d95..0000000 --- a/doc/exception/class-use/ProtocolError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.ProtocolError - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
exception.ProtocolError

-
-
- -
-
- - - diff --git a/doc/exception/class-use/SizeError.html b/doc/exception/class-use/SizeError.html deleted file mode 100644 index 6a13d5b..0000000 --- a/doc/exception/class-use/SizeError.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - -Uses of Class exception.SizeError - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
exception.SizeError

-
-
-
    -
  • - - - - - - - - - - - - - - - - -
    Packages that use SizeError 
    PackageDescription
    protocolP2P 
    tools 
    -
  • -
  • -
      -
    • -
      - - -

      Uses of SizeError in protocolP2P

      - - - - - - - - - - - - - - -
      Methods in protocolP2P that throw SizeError 
      Modifier and TypeMethodDescription
      static ProtocolP2PDatagramProtocolP2PDatagram.receive​(java.net.DatagramSocket socket) -
      Receive datagram on socket
      -
      -
      -
    • -
    • -
      - - -

      Uses of SizeError in tools

      - - - - - - - - - - - - - - - - - - - -
      Methods in tools that throw SizeError 
      Modifier and TypeMethodDescription
      static intBytesArrayTools.readInt​(byte[] array, - int start) -
      Read int from a bytearray
      -
      static longBytesArrayTools.readLong​(byte[] array, - int start) -
      Read long from a bytearray
      -
      -
      -
    • -
    -
  • -
-
-
- - - diff --git a/doc/exception/class-use/TransmissionError.html b/doc/exception/class-use/TransmissionError.html deleted file mode 100644 index 4676064..0000000 --- a/doc/exception/class-use/TransmissionError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.TransmissionError - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
exception.TransmissionError

-
-
- -
-
- - - diff --git a/doc/exception/class-use/VersionError.html b/doc/exception/class-use/VersionError.html deleted file mode 100644 index bd73afc..0000000 --- a/doc/exception/class-use/VersionError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.VersionError - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
exception.VersionError

-
-
- -
-
- - - diff --git a/doc/exception/package-tree.html b/doc/exception/package-tree.html deleted file mode 100644 index 35a3531..0000000 --- a/doc/exception/package-tree.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - -exception Class Hierarchy - - - - - - - - - - - - - - - -
- -
-
-
-

Hierarchy For Package exception

-Package Hierarchies: - -
-
-
-

Class Hierarchy

- -
-
-
- - - diff --git a/doc/exception/package-use.html b/doc/exception/package-use.html deleted file mode 100644 index 1a77d64..0000000 --- a/doc/exception/package-use.html +++ /dev/null @@ -1,225 +0,0 @@ - - - - - -Uses of Package exception - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Package
exception

-
-
- -
-
- - - diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html deleted file mode 100644 index 97ab3ef..0000000 --- a/doc/index-files/index-1.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - -A-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

A

-
-
askOpenDataHomeDirectory() - Method in class tools.Directories
-
-
Asks the user to choose opening dataHomeDirectory or not.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html deleted file mode 100644 index 15deac2..0000000 --- a/doc/index-files/index-10.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - -M-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

M

-
-
main(String[]) - Static method in class clientP2P.ClientP2P
-
 
-
main(String[]) - Static method in class serverP2P.ServerP2P
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html deleted file mode 100644 index 1213030..0000000 --- a/doc/index-files/index-11.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - -N-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

N

-
-
NOT_FOUND - protocolP2P.RequestResponseCode
-
 
-
NotFound - Exception in remoteException
-
 
-
NotFound() - Constructor for exception remoteException.NotFound
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html deleted file mode 100644 index dcca901..0000000 --- a/doc/index-files/index-12.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - -P-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

P

-
-
Payload - Class in protocolP2P
-
-
Representation of payload.
-
-
Payload(RequestResponseCode) - Constructor for class protocolP2P.Payload
-
-
Consructor used to create Payload with a payload size of zero using a RRCode.
-
-
PROTOCOL_ERROR - protocolP2P.RequestResponseCode
-
 
-
ProtocolError - Exception in exception
-
 
-
ProtocolError() - Constructor for exception exception.ProtocolError
-
 
-
protocolP2P - package protocolP2P
-
 
-
ProtocolP2PDatagram - Class in protocolP2P
-
-
Representation of datagram.
-
-
ProtocolP2PDatagram(Payload) - Constructor for class protocolP2P.ProtocolP2PDatagram
-
-
Constructor with payload parameter (typically used when sending datagram).
-
-
ProtocolRemoteError - Exception in remoteException
-
 
-
ProtocolRemoteError() - Constructor for exception remoteException.ProtocolRemoteError
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html deleted file mode 100644 index df20b58..0000000 --- a/doc/index-files/index-13.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -R-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

R

-
-
readInt(byte[], int) - Static method in class tools.BytesArrayTools
-
-
Read int from a bytearray
-
-
readLong(byte[], int) - Static method in class tools.BytesArrayTools
-
-
Read long from a bytearray
-
-
receive(DatagramSocket) - Static method in class protocolP2P.ProtocolP2PDatagram
-
-
Receive datagram on socket
-
-
remoteException - package remoteException
-
 
-
REQUEST - protocolP2P.CodeType
-
 
-
RequestResponseCode - Enum in protocolP2P
-
-
Request/Response code enum.
-
-
RESPONSE - protocolP2P.CodeType
-
 
-
run() - Method in class clientP2P.ClientManagementUDP
-
-
Implementation of Runnable
-
-
run() - Method in class serverP2P.ServerManagementUDP
-
-
Implementation of runnable.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html deleted file mode 100644 index 2720fb2..0000000 --- a/doc/index-files/index-14.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - -S-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

S

-
-
send(DatagramSocket, String, int) - Method in class protocolP2P.ProtocolP2PDatagram
-
-
Send datagram on socket (from client)
-
-
send(DatagramSocket, ProtocolP2PDatagram) - Method in class protocolP2P.ProtocolP2PDatagram
-
-
Send datagram on socket (from server, as a response)
-
-
ServerManagementUDP - Class in serverP2P
-
-
Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for UDP.
-
-
ServerManagementUDP(String, int) - Constructor for class serverP2P.ServerManagementUDP
-
-
Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
-
-
serverP2P - package serverP2P
-
 
-
ServerP2P - Class in serverP2P
-
 
-
ServerP2P() - Constructor for class serverP2P.ServerP2P
-
 
-
SizeError - Exception in exception
-
-
Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
-
-
SizeError() - Constructor for exception exception.SizeError
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html deleted file mode 100644 index f1c49bc..0000000 --- a/doc/index-files/index-15.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - -T-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

T

-
-
tools - package tools
-
 
-
TransmissionError - Exception in exception
-
 
-
TransmissionError() - Constructor for exception exception.TransmissionError
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-16.html b/doc/index-files/index-16.html deleted file mode 100644 index 0733ced..0000000 --- a/doc/index-files/index-16.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - - -V-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

V

-
-
valueOf(String) - Static method in enum protocolP2P.CodeType
-
-
Returns the enum constant of this type with the specified name.
-
-
valueOf(String) - Static method in enum protocolP2P.RequestResponseCode
-
-
Returns the enum constant of this type with the specified name.
-
-
values() - Static method in enum protocolP2P.CodeType
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
values() - Static method in enum protocolP2P.RequestResponseCode
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
VERSION_ERROR - protocolP2P.RequestResponseCode
-
 
-
VersionError - Exception in exception
-
 
-
VersionError() - Constructor for exception exception.VersionError
-
 
-
VersionRemoteError - Exception in remoteException
-
 
-
VersionRemoteError() - Constructor for exception remoteException.VersionRemoteError
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-17.html b/doc/index-files/index-17.html deleted file mode 100644 index a73e925..0000000 --- a/doc/index-files/index-17.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - -W-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

W

-
-
write(byte[], int, int) - Static method in class tools.BytesArrayTools
-
-
Write int in a bytearray
-
-
write(byte[], int, long) - Static method in class tools.BytesArrayTools
-
-
Write long in a bytearray
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html deleted file mode 100644 index 65a9188..0000000 --- a/doc/index-files/index-2.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - -B-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

B

-
-
BytesArrayTools - Class in tools
-
-
Helper to manipulate byte[].
-
-
BytesArrayTools() - Constructor for class tools.BytesArrayTools
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html deleted file mode 100644 index 98313f2..0000000 --- a/doc/index-files/index-3.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - - -C-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

C

-
-
ClientManagementUDP - Class in clientP2P
-
-
Implementation of P2P-JAVA-PROJECT CLIENT
-
-
ClientManagementUDP(String, String, int) - Constructor for class clientP2P.ClientManagementUDP
-
-
Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
-
-
clientP2P - package clientP2P
-
 
-
ClientP2P - Class in clientP2P
-
 
-
ClientP2P() - Constructor for class clientP2P.ClientP2P
-
 
-
codeType - Variable in enum protocolP2P.RequestResponseCode
-
 
-
CodeType - Enum in protocolP2P
-
-
Request/Response code's type enum.
-
-
codeValue - Variable in enum protocolP2P.RequestResponseCode
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html deleted file mode 100644 index a50f3ff..0000000 --- a/doc/index-files/index-4.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - -D-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

D

-
-
Directories - Class in tools
-
-
Helper to get application directories.
-
-
Directories(String) - Constructor for class tools.Directories
-
-
Constructor with projectName parameter.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html deleted file mode 100644 index 94c2a2f..0000000 --- a/doc/index-files/index-5.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -E-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

E

-
-
EMPTY_DIRECTORY - protocolP2P.RequestResponseCode
-
 
-
EMPTY_FILE - protocolP2P.RequestResponseCode
-
 
-
EmptyDirectory - Exception in remoteException
-
 
-
EmptyDirectory() - Constructor for exception remoteException.EmptyDirectory
-
 
-
EmptyFile - Exception in remoteException
-
 
-
EmptyFile() - Constructor for exception remoteException.EmptyFile
-
 
-
ERROR - protocolP2P.CodeType
-
 
-
exception - package exception
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html deleted file mode 100644 index 94e5e20..0000000 --- a/doc/index-files/index-6.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - -F-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

F

-
-
FileList - Class in protocolP2P
-
-
Representation of payload for list response.
-
-
FileList(String[]) - Constructor for class protocolP2P.FileList
-
-
Constructor (typically used by the server) with an ArrayList parameter containing - filenames.
-
-
FilePart - Class in protocolP2P
-
-
Representation of payload for load response.
-
-
FilePart(String, long, long, byte[]) - Constructor for class protocolP2P.FilePart
-
-
Constructor (typically used by server) with informations about file part to send as parameters.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html deleted file mode 100644 index bdcccea..0000000 --- a/doc/index-files/index-7.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - -G-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

G

-
-
getDataHomeDirectory() - Method in class tools.Directories
-
-
Getter for dataHomeDirectory.
-
-
getFileList() - Method in class protocolP2P.FileList
-
-
fileList getter.
-
-
getFilename() - Method in class protocolP2P.FilePart
-
-
filename getter.
-
-
getFilename() - Method in class protocolP2P.LoadRequest
-
-
filename getter.
-
-
getOffset() - Method in class protocolP2P.FilePart
-
-
offset getter.
-
-
getPartialContent() - Method in class protocolP2P.FilePart
-
-
partialContent getter.
-
-
getPayload() - Method in class protocolP2P.ProtocolP2PDatagram
-
-
Returns Payload associated with the datagram.
-
-
getRequestResponseCode() - Method in class protocolP2P.Payload
-
-
RRCode getter.
-
-
getTotalSize() - Method in class protocolP2P.FilePart
-
-
totalSize getter.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html deleted file mode 100644 index 966d577..0000000 --- a/doc/index-files/index-8.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - -I-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

I

-
-
INTERNAL_ERROR - protocolP2P.RequestResponseCode
-
 
-
InternalError - Exception in exception
-
 
-
InternalError() - Constructor for exception exception.InternalError
-
 
-
InternalRemoteError - Exception in remoteException
-
 
-
InternalRemoteError() - Constructor for exception remoteException.InternalRemoteError
-
 
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html deleted file mode 100644 index 26b69df..0000000 --- a/doc/index-files/index-9.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -L-Index - - - - - - - - - - - - - - - -
- -
-
-
A B C D E F G I L M N P R S T V W 
All Classes All Packages - - -

L

-
-
LIST_REQUEST - protocolP2P.RequestResponseCode
-
 
-
LIST_RESPONSE - protocolP2P.RequestResponseCode
-
 
-
LOAD_REQUEST - protocolP2P.RequestResponseCode
-
 
-
LOAD_RESPONSE - protocolP2P.RequestResponseCode
-
 
-
LoadRequest - Class in protocolP2P
-
-
Representation of payload for load request.
-
-
LoadRequest(String) - Constructor for class protocolP2P.LoadRequest
-
-
Constructor (typically used by the server) with a filename parameter.
-
-
-A B C D E F G I L M N P R S T V W 
All Classes All Packages
-
- - - diff --git a/doc/javadoc/allclasses-frame.html b/doc/javadoc/allclasses-frame.html new file mode 100644 index 0000000..b0e1159 --- /dev/null +++ b/doc/javadoc/allclasses-frame.html @@ -0,0 +1,100 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/javadoc/allclasses-index.html b/doc/javadoc/allclasses-index.html deleted file mode 100644 index 7ee95d7..0000000 --- a/doc/javadoc/allclasses-index.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - -All Classes - - - - - - - - - - - - - - - -
- -
-
-
-

All Classes

-
-
- -
-
- - - diff --git a/doc/javadoc/allclasses-noframe.html b/doc/javadoc/allclasses-noframe.html new file mode 100644 index 0000000..43bd574 --- /dev/null +++ b/doc/javadoc/allclasses-noframe.html @@ -0,0 +1,100 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/javadoc/allclasses.html b/doc/javadoc/allclasses.html deleted file mode 100644 index 18bd47c..0000000 --- a/doc/javadoc/allclasses.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -All Classes - - - - - - - - - - - - - -

All Classes

-
- -
- - diff --git a/doc/javadoc/allpackages-index.html b/doc/javadoc/allpackages-index.html deleted file mode 100644 index 94083de..0000000 --- a/doc/javadoc/allpackages-index.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - -All Packages - - - - - - - - - - - - - - - -
- -
-
-
-

All Packages

-
-
- -
-
- - - diff --git a/doc/javadoc/clientP2P/ClientDownload.html b/doc/javadoc/clientP2P/ClientDownload.html new file mode 100644 index 0000000..a2bb9ca --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownload.html @@ -0,0 +1,962 @@ + + + + + +ClientDownload + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownload

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    Direct Known Subclasses:
    +
    ClientDownloadTCP, ClientDownloadUDP
    +
    +
    +
    +
    public abstract class ClientDownload
    +extends ServeErrors
    +implements java.lang.Runnable
    +
    Class to download file
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        hostList

        +
        protected java.util.List<HostItem> hostList
        +
      • +
      + + + +
        +
      • +

        filename

        +
        protected java.lang.String filename
        +
      • +
      + + + +
        +
      • +

        hash512

        +
        protected byte[] hash512
        +
      • +
      + + + + + + + +
        +
      • +

        ratioUpdater

        +
        protected java.util.Map<HostItem,java.lang.Long> ratioUpdater
        +
      • +
      + + + +
        +
      • +

        offsetsToAsk

        +
        protected java.util.List<java.lang.Long> offsetsToAsk
        +
      • +
      + + + +
        +
      • +

        offsetsPending

        +
        protected java.util.List<java.lang.Long> offsetsPending
        +
      • +
      + + + +
        +
      • +

        stop

        +
        protected boolean stop
        +
      • +
      + + + +
        +
      • +

        size

        +
        protected long size
        +
      • +
      + + + +
        +
      • +

        MAX_PARTIAL_SIZE

        +
        protected static final long MAX_PARTIAL_SIZE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        partsSubdir

        +
        protected java.lang.String partsSubdir
        +
      • +
      + + + +
        +
      • +

        dirStorage

        +
        protected java.lang.String dirStorage
        +
      • +
      + + + +
        +
      • +

        success

        +
        protected boolean success
        +
      • +
      + + + +
        +
      • +

        logger

        +
        protected Logger logger
        +
      • +
      + + + +
        +
      • +

        client

        +
        protected HostItem client
        +
      • +
      + + + +
        +
      • +

        tracker

        +
        protected HostItem tracker
        +
      • +
      + + + +
        +
      • +

        lastPercentProgress

        +
        protected int lastPercentProgress
        +
      • +
      + + + +
        +
      • +

        lastTimeProgress

        +
        protected java.time.Instant lastTimeProgress
        +
      • +
      + + + +
        +
      • +

        DIFF_TIME_PROGRESS_MILLIS

        +
        static final int DIFF_TIME_PROGRESS_MILLIS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + +
        +
      • +

        DIFF_PERCENT_PROGRESS

        +
        static final int DIFF_PERCENT_PROGRESS
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownload

        +
        public ClientDownload(java.lang.String filename,
        +                      java.util.List<HostItem> hostList,
        +                      java.lang.String partsSubdir,
        +                      java.lang.String dirStorage,
        +                      Logger logger,
        +                      HostItem client,
        +                      HostItem tracker)
        +
        Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        hostList - list of servers
        +
        partsSubdir - directory to store .part files
        +
        dirStorage - directory to write assembled file
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        tracker - HostItem of the tracker
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSuccess

        +
        public boolean getSuccess()
        +
        Success getter.
        +
        +
        Returns:
        +
        true when file have successfully been reassembled.
        +
        +
      • +
      + + + +
        +
      • +

        getHashSum512

        +
        public byte[] getHashSum512()
        +
        Getter for hash512sum
        +
        +
        Returns:
        +
        hash512sum
        +
        +
      • +
      + + + +
        +
      • +

        stopTasks

        +
        protected void stopTasks()
        +
        Stop threads
        +
      • +
      + + + +
        +
      • +

        setStop

        +
        public void setStop()
        +
        Asks thread to stop
        +
      • +
      + + + +
        +
      • +

        assignTasks

        +
        protected void assignTasks()
        +                    throws InternalError
        +
        Assign tasks randomly to threads.
        +
        +
        Throws:
        +
        InternalError
        +
        +
      • +
      + + + +
        +
      • +

        createDownloadPart

        +
        protected abstract ClientDownloadPart createDownloadPart(HostItem hostItem)
        +
        Create a clientDownloadPart
        +
        +
        Parameters:
        +
        hostItem - Hostitem of the server
        +
        +
      • +
      + + + +
        +
      • +

        initThreads

        +
        protected void initThreads()
        +
        Starts threads for each server in hostList.
        +
      • +
      + + + +
        +
      • +

        checkTasksStatus

        +
        protected void checkTasksStatus()
        +                         throws InternalError
        +
        Remove tasks from failed threads. Update done status.
        +
        +
        Throws:
        +
        InternalError
        +
        +
      • +
      + + + +
        +
      • +

        sendRatioUpdate

        +
        public void sendRatioUpdate()
        +
        Send Ratio update to the tracker
        +
      • +
      + + + +
        +
      • +

        getHashSum512

        +
        protected byte[] getHashSum512(HostItem hostItem)
        +                        throws InternalError
        +
        Get hashsum from server.
        +
        +
        Parameters:
        +
        hostItem - server to ask hash
        +
        Returns:
        +
        hash512sum
        +
        Throws:
        +
        InternalError
        +
        +
      • +
      + + + +
        +
      • +

        purgeList

        +
        protected void purgeList()
        +                  throws InternalError
        +
        Removes servers not owning the correct file to download from list. + This is done by comparing hash512sum.
        +
        +
        Throws:
        +
        InternalError
        +
        +
      • +
      + + + +
        +
      • +

        reassembleFile

        +
        protected void reassembleFile()
        +
        Reassemble file from file parts. + Set success to true if file is reassembled successfully.
        +
      • +
      + + + + + + + +
        +
      • +

        closeHostItemSocket

        +
        protected abstract void closeHostItemSocket(HostItem hostItem)
        +
        Close HostItem socket
        +
        +
        Parameters:
        +
        hostItem - HostItem
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        Runnable implementation
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        printProgression

        +
        protected void printProgression()
        +
        Print progression of the download.
        +
      • +
      + + + +
        +
      • +

        init

        +
        protected void init()
        +             throws InternalError
        +
        Initialize infos about file to download (size, hash512sum, partslist to dl). + Also download first partfile (to get size).
        +
        +
        Throws:
        +
        InternalError
        +
        +
      • +
      + + + +
        +
      • +

        getHostItemSocket

        +
        protected abstract java.lang.Object getHostItemSocket(HostItem hostItem)
        +                                               throws java.net.SocketException,
        +                                                      java.net.UnknownHostException,
        +                                                      java.io.IOException
        +
        Getter for HostItem socket
        +
        +
        Parameters:
        +
        hostItem - HostItem
        +
        Throws:
        +
        java.net.SocketException
        +
        java.net.UnknownHostException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientDownloadPart.html b/doc/javadoc/clientP2P/ClientDownloadPart.html new file mode 100644 index 0000000..ae1aa86 --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownloadPart.html @@ -0,0 +1,803 @@ + + + + + +ClientDownloadPart + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownloadPart

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    Direct Known Subclasses:
    +
    ClientDownloadPartTCP, ClientDownloadPartUDP
    +
    +
    +
    +
    public abstract class ClientDownloadPart
    +extends ServeErrors
    +implements java.lang.Runnable
    +
    Class to download file parts.
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        receivedBytesCount

        +
        protected long receivedBytesCount
        +
      • +
      + + + +
        +
      • +

        toDoTasks

        +
        protected java.util.List<java.lang.Long> toDoTasks
        +
      • +
      + + + +
        +
      • +

        pendingTasks

        +
        protected java.util.List<java.lang.Long> pendingTasks
        +
      • +
      + + + +
        +
      • +

        tasksDone

        +
        protected java.util.List<java.lang.Long> tasksDone
        +
      • +
      + + + +
        +
      • +

        tasksListsLock

        +
        protected volatile boolean tasksListsLock
        +
      • +
      + + + +
        +
      • +

        stop

        +
        protected volatile boolean stop
        +
      • +
      + + + +
        +
      • +

        failed

        +
        protected volatile boolean failed
        +
      • +
      + + + +
        +
      • +

        filename

        +
        protected java.lang.String filename
        +
      • +
      + + + +
        +
      • +

        noTask

        +
        protected volatile boolean noTask
        +
      • +
      + + + +
        +
      • +

        partsSubdir

        +
        protected java.lang.String partsSubdir
        +
      • +
      + + + +
        +
      • +

        MAX_PARTIAL_SIZE

        +
        protected static final long MAX_PARTIAL_SIZE
        +
        +
        See Also:
        +
        Constant Field Values
        +
        +
      • +
      + + + + + + + +
        +
      • +

        logger

        +
        protected Logger logger
        +
      • +
      + + + +
        +
      • +

        client

        +
        protected HostItem client
        +
      • +
      + + + +
        +
      • +

        server

        +
        private HostItem server
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownloadPart

        +
        public ClientDownloadPart(ClientDownload manager,
        +                          java.lang.String filename,
        +                          java.lang.String partsSubdir,
        +                          Logger logger,
        +                          HostItem client,
        +                          HostItem server)
        +
        Constructor with filename, socket, and part subdir
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        socket - socket to use
        +
        partsSubdir - directory to store .part files
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        server - HostItem of the server application
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getReceivedBytesCount

        +
        public java.lang.Long getReceivedBytesCount()
        +
        receivedBytesCount getter
        +
        +
        Returns:
        +
        receivedBytesCount
        +
        +
      • +
      + + + +
        +
      • +

        getServer

        +
        public HostItem getServer()
        +
        Server getter
        +
        +
        Returns:
        +
        server
        +
        +
      • +
      + + + +
        +
      • +

        hasFailed

        +
        public boolean hasFailed()
        +
        True if thread has failed to get a file.
        +
        +
        Returns:
        +
        true if thread has failed to get a file
        +
        +
      • +
      + + + +
        +
      • +

        setStop

        +
        public void setStop()
        +             throws java.lang.InterruptedException
        +
        Asks to stop thread.
        +
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        run

        +
        public void run()
        +
        Runnable implementation
        +
        +
        Specified by:
        +
        run in interface java.lang.Runnable
        +
        +
      • +
      + + + +
        +
      • +

        closeSocket

        +
        protected abstract void closeSocket()
        +                             throws java.io.IOException
        +
        Close the socket
        +
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        getFailed

        +
        public java.util.List<java.lang.Long> getFailed()
        +
        Get list of offsets that have not be downloaded if failed, else + empty list.
        +
        +
        Returns:
        +
        list of offsets
        +
        +
      • +
      + + + +
        +
      • +

        getDone

        +
        public java.util.List<java.lang.Long> getDone()
        +                                       throws java.lang.InterruptedException
        +
        Get list of downloaded file parts offset, then clear this list.
        +
        +
        Returns:
        +
        list of offsets
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        assignTask

        +
        public void assignTask(java.lang.Long task)
        +                throws java.lang.InterruptedException
        +
        Adds offset of files parts to download.
        +
        +
        Parameters:
        +
        task - offset to download
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        doTasks

        +
        public void doTasks()
        +             throws java.lang.InterruptedException
        +
        Send one request and wait for one response. Blocks when no task.
        +
        +
        Throws:
        +
        java.lang.InterruptedException
        +
        +
      • +
      + + + +
        +
      • +

        reqPart

        +
        protected ProtocolP2PPacket<?> reqPart(java.lang.Long offset)
        +
        Send a request for a specific offset.
        +
        +
        Parameters:
        +
        offset - Offset of the file part to download
        +
        Returns:
        +
        ProtocolP2PPacketTCP used to send request
        +
        +
      • +
      + + + +
        +
      • +

        getSocket

        +
        protected abstract java.lang.Object getSocket()
        +
        Get the socket
        +
      • +
      + + + + + +
        +
      • +

        downloadPart

        +
        public <T extends ProtocolP2PPacket<?>> boolean downloadPart(T d)
        +
        Download file part associated to the request send (d).
        +
        +
        Parameters:
        +
        d - request packet
        +
        Returns:
        +
        true on failure, else false
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientDownloadPartTCP.html b/doc/javadoc/clientP2P/ClientDownloadPartTCP.html new file mode 100644 index 0000000..34ded9a --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownloadPartTCP.html @@ -0,0 +1,477 @@ + + + + + +ClientDownloadPartTCP + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownloadPartTCP

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ClientDownloadPartTCP
    +extends ClientDownloadPart
    +
    Class to download file parts on tcp.
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        socket

        +
        private java.net.Socket socket
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownloadPartTCP

        +
        public ClientDownloadPartTCP(ClientDownload manager,
        +                             java.lang.String filename,
        +                             java.net.Socket socket,
        +                             java.lang.String partsSubdir,
        +                             Logger logger,
        +                             HostItem client,
        +                             HostItem server)
        +
        Constructor with filename, socket, and part subdir
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        socket - socket to use
        +
        partsSubdir - directory to store .part files
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        server - HostItem of the server application
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSocket

        +
        protected java.lang.Object getSocket()
        +
        Get the socket
        +
        +
        Specified by:
        +
        getSocket in class ClientDownloadPart
        +
        +
      • +
      + + + +
        +
      • +

        closeSocket

        +
        protected void closeSocket()
        +                    throws java.io.IOException
        +
        Close the socket
        +
        +
        Specified by:
        +
        closeSocket in class ClientDownloadPart
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientDownloadPartUDP.html b/doc/javadoc/clientP2P/ClientDownloadPartUDP.html new file mode 100644 index 0000000..9fc34e7 --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownloadPartUDP.html @@ -0,0 +1,477 @@ + + + + + +ClientDownloadPartUDP + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownloadPartUDP

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ClientDownloadPartUDP
    +extends ClientDownloadPart
    +
    Class to download file parts on udp.
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        socket

        +
        private java.net.DatagramSocket socket
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownloadPartUDP

        +
        public ClientDownloadPartUDP(ClientDownload manager,
        +                             java.lang.String filename,
        +                             java.net.DatagramSocket socket,
        +                             java.lang.String partsSubdir,
        +                             Logger logger,
        +                             HostItem client,
        +                             HostItem server)
        +
        Constructor with filename, socket, and part subdir
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        socket - socket to use
        +
        partsSubdir - directory to store .part files
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        server - HostItem of the server application
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getSocket

        +
        protected java.lang.Object getSocket()
        +
        Get the socket
        +
        +
        Specified by:
        +
        getSocket in class ClientDownloadPart
        +
        +
      • +
      + + + +
        +
      • +

        closeSocket

        +
        protected void closeSocket()
        +                    throws java.io.IOException
        +
        Close the socket
        +
        +
        Specified by:
        +
        closeSocket in class ClientDownloadPart
        +
        Throws:
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientDownloadTCP.html b/doc/javadoc/clientP2P/ClientDownloadTCP.html new file mode 100644 index 0000000..a00a438 --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownloadTCP.html @@ -0,0 +1,480 @@ + + + + + +ClientDownloadTCP + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownloadTCP

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ClientDownloadTCP
    +extends ClientDownload
    +
    Class to download file from tcp
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownloadTCP

        +
        public ClientDownloadTCP(java.lang.String filename,
        +                         java.util.List<HostItem> hostList,
        +                         java.lang.String partsSubdir,
        +                         java.lang.String dirStorage,
        +                         Logger logger,
        +                         HostItem client,
        +                         HostItem tracker)
        +
        Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        hostList - list of servers
        +
        partsSubdir - directory to store .part files
        +
        dirStorage - directory to write assembled file
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        tracker - HostItem of the tracker
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        closeHostItemSocket

        +
        protected void closeHostItemSocket(HostItem hostItem)
        +
        Close HostItem socket
        +
        +
        Specified by:
        +
        closeHostItemSocket in class ClientDownload
        +
        Parameters:
        +
        hostItem - HostItem
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + + + + + + + +
        +
      • +

        getHostItemSocket

        +
        protected java.lang.Object getHostItemSocket(HostItem hostItem)
        +                                      throws java.net.SocketException,
        +                                             java.net.UnknownHostException,
        +                                             java.io.IOException
        +
        Getter for HostItem socket
        +
        +
        Specified by:
        +
        getHostItemSocket in class ClientDownload
        +
        Parameters:
        +
        hostItem - HostItem
        +
        Throws:
        +
        java.net.SocketException
        +
        java.net.UnknownHostException
        +
        java.io.IOException
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientDownloadUDP.html b/doc/javadoc/clientP2P/ClientDownloadUDP.html new file mode 100644 index 0000000..a47ccf9 --- /dev/null +++ b/doc/javadoc/clientP2P/ClientDownloadUDP.html @@ -0,0 +1,480 @@ + + + + + +ClientDownloadUDP + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientDownloadUDP

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ClientDownloadUDP
    +extends ClientDownload
    +
    Class to download file from udp
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientDownloadUDP

        +
        public ClientDownloadUDP(java.lang.String filename,
        +                         java.util.List<HostItem> hostList,
        +                         java.lang.String partsSubdir,
        +                         java.lang.String dirStorage,
        +                         Logger logger,
        +                         HostItem client,
        +                         HostItem tracker)
        +
        Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
        +
        +
        Parameters:
        +
        filename - name of file to download
        +
        hostList - list of servers
        +
        partsSubdir - directory to store .part files
        +
        dirStorage - directory to write assembled file
        +
        logger - Logger
        +
        client - HostItem of the application
        +
        tracker - HostItem of the tracker
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ServeErrors
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + + + + + + + +
        +
      • +

        getHostItemSocket

        +
        protected java.lang.Object getHostItemSocket(HostItem hostItem)
        +                                      throws java.net.SocketException,
        +                                             java.net.UnknownHostException,
        +                                             java.io.IOException
        +
        Getter for HostItem socket
        +
        +
        Specified by:
        +
        getHostItemSocket in class ClientDownload
        +
        Parameters:
        +
        hostItem - HostItemç
        +
        Throws:
        +
        java.net.SocketException
        +
        java.net.UnknownHostException
        +
        java.io.IOException
        +
        +
      • +
      + + + +
        +
      • +

        closeHostItemSocket

        +
        protected void closeHostItemSocket(HostItem hostItem)
        +
        Close HostItem socket
        +
        +
        Specified by:
        +
        closeHostItemSocket in class ClientDownload
        +
        Parameters:
        +
        hostItem - HostItem
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientInterface.html b/doc/javadoc/clientP2P/ClientInterface.html new file mode 100644 index 0000000..59f341c --- /dev/null +++ b/doc/javadoc/clientP2P/ClientInterface.html @@ -0,0 +1,386 @@ + + + + + +ClientInterface + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientInterface

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    Direct Known Subclasses:
    +
    ClientInterfaceCLI, ClientInterfaceGUI
    +
    +
    +
    +
    public abstract class ClientInterface
    +extends java.lang.Object
    +implements java.lang.Runnable
    +
    Implementation of P2P-JAVA-PROJECT CLIENT interface
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ClientInterface(ClientManagement clientManagement, + Logger logger) +
      Constructor with clientManagement and logger.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      protected voidwriteLog(java.lang.Exception e, + LogLevel logLevel) +
      Implementation of writeLog
      +
      protected voidwriteLog(java.lang.String text, + LogLevel logLevel) +
      Implementation of writeLog
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
        +
      • + + +

        Methods inherited from interface java.lang.Runnable

        +run
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientInterface

        +
        public ClientInterface(ClientManagement clientManagement,
        +                       Logger logger)
        +
        Constructor with clientManagement and logger.
        +
        +
        Parameters:
        +
        clientManagement - ClientManagement used
        +
        logger - Logger used
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientInterfaceCLI.html b/doc/javadoc/clientP2P/ClientInterfaceCLI.html new file mode 100644 index 0000000..4557593 --- /dev/null +++ b/doc/javadoc/clientP2P/ClientInterfaceCLI.html @@ -0,0 +1,406 @@ + + + + + +ClientInterfaceCLI + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientInterfaceCLI

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.lang.Runnable
    +
    +
    +
    +
    public class ClientInterfaceCLI
    +extends ClientInterface
    +
    Implementation of P2P-JAVA-PROJECT CLIENT interface for CLI
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      private java.lang.String[]list 
      private java.util.Scannerscanner 
      + +
    • +
    + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ClientInterfaceCLI(ClientManagement clientManagement, + Logger logger, + java.util.Scanner scanner) +
      Constructor with clientManagement, logger and scanner.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      private booleaninitFileList() +
      Initialize file list
      +
      private booleaninitHostList() +
      Initialization of hostList with retry in failure
      +
      voidrun() +
      Implementation of Runnable
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        scanner

        +
        private java.util.Scanner scanner
        +
      • +
      + + + +
        +
      • +

        list

        +
        private java.lang.String[] list
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientInterfaceCLI

        +
        public ClientInterfaceCLI(ClientManagement clientManagement,
        +                          Logger logger,
        +                          java.util.Scanner scanner)
        +
        Constructor with clientManagement, logger and scanner.
        +
        +
        Parameters:
        +
        clientManagement - ClientManagement used
        +
        logger - Logger used
        +
        scanner - Scanner used to read input
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        run

        +
        public void run()
        +
        Implementation of Runnable
        +
      • +
      + + + +
        +
      • +

        initHostList

        +
        private boolean initHostList()
        +
        Initialization of hostList with retry in failure
        +
        +
        Returns:
        +
        true if successfully initialized
        +
        +
      • +
      + + + +
        +
      • +

        initFileList

        +
        private boolean initFileList()
        +
        Initialize file list
        +
        +
        Returns:
        +
        true if successfully initialized
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientManagement.html b/doc/javadoc/clientP2P/ClientManagement.html new file mode 100644 index 0000000..29b9eac --- /dev/null +++ b/doc/javadoc/clientP2P/ClientManagement.html @@ -0,0 +1,709 @@ + + + + + +ClientManagement + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientManagement

+
+
+ +
+
    +
  • +
    +
    Direct Known Subclasses:
    +
    ClientManagementTCP, ClientManagementUDP
    +
    +
    +
    +
    public abstract class ClientManagement
    +extends ServeErrors
    +
    Implementation of P2P-JAVA-PROJECT CLIENT
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        baseDirectory

        +
        protected java.lang.String baseDirectory
        +
      • +
      + + + +
        +
      • +

        partsSubdir

        +
        protected java.lang.String partsSubdir
        +
      • +
      + + + +
        +
      • +

        hostList

        +
        protected java.util.List<HostItem> hostList
        +
      • +
      + + + +
        +
      • +

        tracker

        +
        protected HostItem tracker
        +
      • +
      + + + +
        +
      • +

        client

        +
        protected HostItem client
        +
      • +
      + + + +
        +
      • +

        logger

        +
        protected Logger logger
        +
      • +
      + + + + +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientManagement

        +
        public ClientManagement(java.lang.String baseDirectory,
        +                        HostItem tracker,
        +                        java.lang.String partsSubdir,
        +                        Logger logger,
        +                        HostItem client)
        +
        Constructor with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
        +
        +
        Parameters:
        +
        baseDirectory - the root directory where files are stored
        +
        tracker - Tracker hostItem
        +
        partsSubdir - subdirectory to store file parts
        +
        logger - Loggger
        +
        client - HostItem of the application
        +
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientManagementTCP.html b/doc/javadoc/clientP2P/ClientManagementTCP.html new file mode 100644 index 0000000..f81e5fa --- /dev/null +++ b/doc/javadoc/clientP2P/ClientManagementTCP.html @@ -0,0 +1,512 @@ + + + + + +ClientManagementTCP + + + + + + + + +
+ + + + + + + +
+ + + +
+
clientP2P
+

Class ClientManagementTCP

+
+
+ +
+
    +
  • +
    +
    +
    public class ClientManagementTCP
    +extends ClientManagement
    +
    Implementation of P2P-JAVA-PROJECT CLIENT
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Louis Royer, Flavien Haas, JS Auge
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ClientManagementTCP

        +
        public ClientManagementTCP(java.lang.String baseDirectory,
        +                           HostItem tracker,
        +                           java.lang.String partsSubdir,
        +                           Logger logger,
        +                           HostItem client)
        +
        Constructor for TCP implementation, with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
        +
        +
        Parameters:
        +
        baseDirectory - the root directory where files are stored
        +
        tracker - Tracker hostItem
        +
        partsSubdir - subdirectory to store file parts
        +
        logger - Loggger
        +
        client - HostItem of the application
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        initDownloader

        +
        protected void initDownloader(java.lang.String filename)
        +
        Initialize downloader
        +
        +
        Specified by:
        +
        initDownloader in class ClientManagement
        +
        Parameters:
        +
        filename - Name of the file to download
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.String text,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ClientManagement
        +
        Parameters:
        +
        text - Text to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + +
        +
      • +

        writeLog

        +
        protected void writeLog(java.lang.Exception e,
        +                        LogLevel logLevel)
        +
        Implementation of writeLog
        +
        +
        Specified by:
        +
        writeLog in class ClientManagement
        +
        Parameters:
        +
        e - exception to log
        +
        logLevel - level of logging
        +
        +
      • +
      + + + + + + + + + +
        +
      • +

        getTrackerSocket

        +
        protected java.lang.Object getTrackerSocket()
        +                                     throws java.net.SocketException,
        +                                            java.net.UnknownHostException,
        +                                            java.io.IOException
        +
        Getter for tracker socket
        +
        +
        Specified by:
        +
        getTrackerSocket in class ClientManagement
        +
        Returns:
        +
        Tracker's socket
        +
        Throws:
        +
        java.net.SocketException
        +
        java.net.UnknownHostException
        +
        java.io.IOException
        +
        +
      • +
      + + + + + + + +
        +
      • +

        getHostItemSocket

        +
        protected java.lang.Object getHostItemSocket(HostItem hostItem)
        +
        Getter for HostItem socket
        +
        +
        Specified by:
        +
        getHostItemSocket in class ClientManagement
        +
        Parameters:
        +
        hostItem - HostItem
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + +
+ + + + + + + +
+ + + + diff --git a/doc/javadoc/clientP2P/ClientManagementUDP.html b/doc/javadoc/clientP2P/ClientManagementUDP.html index 8af6803..c5ee815 100644 --- a/doc/javadoc/clientP2P/ClientManagementUDP.html +++ b/doc/javadoc/clientP2P/ClientManagementUDP.html @@ -1,22 +1,12 @@ - + - + ClientManagementUDP - - + - - - - - - - + -
- -
-
-
Package clientP2P
+
clientP2P

Class ClientManagementUDP

@@ -125,21 +100,27 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
  • java.lang.Object
  • +
  • +
    • -
      -
      All Implemented Interfaces:
      -
      java.lang.Runnable
      -

      +
      public class ClientManagementUDP
      -extends java.lang.Object
      -implements java.lang.Runnable
      +extends ClientManagement
      Implementation of P2P-JAVA-PROJECT CLIENT
      Version:
      @@ -153,63 +134,130 @@ implements java.lang.Runnable
      @@ -217,75 +265,197 @@ implements java.lang.Runnable
      • -
          -
        • +
        • Constructor Detail

          - +
          • ClientManagementUDP

            -
            public ClientManagementUDP​(java.lang.String baseDirectory,
            -                           java.lang.String host,
            -                           int UDPPort)
            -
            Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
            +
            public ClientManagementUDP(java.lang.String baseDirectory,
            +                           HostItem tracker,
            +                           java.lang.String partsSubdir,
            +                           Logger logger,
            +                           HostItem client)
            +
            Constructor for UDP implementation, with baseDirectory, tracker, partsSubdir, logger and scanner parameters.
            Parameters:
            baseDirectory - the root directory where files are stored
            -
            host - hostname of the server
            -
            UDPPort - the server will listen on this port
            +
            tracker - tracker HostItem
            +
            partsSubdir - subdirectory to store file parts
            +
            logger - Loggger
            +
            client - HostItem of the application
        -
        -
          -
        • +
        • Method Detail

          - + + + +
            +
          • +

            initDownloader

            +
            protected void initDownloader(java.lang.String filename)
            +
            Initialize downloader
            +
            +
            Specified by:
            +
            initDownloader in class ClientManagement
            +
            Parameters:
            +
            filename - Name of the file to download
            +
            +
          • +
          + + + +
            +
          • +

            writeLog

            +
            protected void writeLog(java.lang.String text,
            +                        LogLevel logLevel)
            +
            Implementation of writeLog
            +
            +
            Specified by:
            +
            writeLog in class ClientManagement
            +
            Parameters:
            +
            text - Text to log
            +
            logLevel - level of logging
            +
            +
          • +
          + + + +
            +
          • +

            writeLog

            +
            protected void writeLog(java.lang.Exception e,
            +                        LogLevel logLevel)
            +
            Implementation of writeLog
            +
            +
            Specified by:
            +
            writeLog in class ClientManagement
            +
            Parameters:
            +
            e - exception to log
            +
            logLevel - level of logging
            +
            +
          • +
          + + + + + + + + + +
            +
          • +

            getTrackerSocket

            +
            protected java.lang.Object getTrackerSocket()
            +                                     throws java.net.SocketException,
            +                                            java.net.UnknownHostException,
            +                                            java.io.IOException
            +
            Getter for tracker socket
            +
            +
            Specified by:
            +
            getTrackerSocket in class ClientManagement
            +
            Returns:
            +
            Tracker's socket
            +
            Throws:
            +
            java.net.SocketException
            +
            java.net.UnknownHostException
            +
            java.io.IOException
            +
            +
          • +
          + + + + + + + +
            +
          • +

            getHostItemSocket

            +
            protected java.lang.Object getHostItemSocket(HostItem hostItem)
            +
            Getter for HostItem socket
            +
            +
            Specified by:
            +
            getHostItemSocket in class ClientManagement
            +
            Parameters:
            +
            hostItem - HostItem
            +
            +
          • +
          +
          • -

            run

            -
            public void run()
            -
            Implementation of Runnable
            +

            closeHostItemSocket

            +
            protected void closeHostItemSocket(HostItem hostItem)
            +
            Close HostItem socket
            Specified by:
            -
            run in interface java.lang.Runnable
            +
            closeHostItemSocket in class ClientManagement
            +
            Parameters:
            +
            hostItem - HostItem
        -
    -
    - diff --git a/doc/javadoc/clientP2P/ClientP2P.html b/doc/javadoc/clientP2P/ClientP2P.html index 157b6f4..59f94b6 100644 --- a/doc/javadoc/clientP2P/ClientP2P.html +++ b/doc/javadoc/clientP2P/ClientP2P.html @@ -1,22 +1,12 @@ - + - + ClientP2P - - + - - - - - - - + -
    - -
    -
    -
    Package clientP2P
    +
    clientP2P

    Class ClientP2P

    @@ -133,127 +108,332 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    • +
      public class ClientP2P
       extends java.lang.Object
      +
      Client + Server implementation.
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
    • + + -
        -
      • +
      • Constructor Summary

        - +
        - - + - - +
        Constructors 
        ConstructorDescriptionConstructor and Description
        ClientP2P() ClientP2P(java.lang.String hostnameServer, + int portServer, + java.lang.String hostnameTracker, + int portTracker) +
        Constructor.
        +
      -
      -
        -
      • +
      • Method Summary

        - - +
        All Methods Static Methods Concrete Methods 
        + - - + + + + + - - + + + + +
        All Methods Static Methods Instance Methods Concrete Methods 
        Modifier and TypeMethodDescriptionMethod and Description
        voidinitDirectoriesAndLoggers() +
        Initialize loggers if directories and logger are null, + else fail silently.
        +
        static voidmain​(java.lang.String[] args) main(java.lang.String[] args) +
        Main program entry point. + 1rst parameter is optionnal, and is used to + define port used by the server module to listen.
        +
        private static voidprintUsage(ServerPortRange serverPortRange, + TrackerPortRange trackerPortRange) +
        Print cli usage
        +
          -
        • +
        • Methods inherited from class java.lang.Object

          -equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      -
    • + +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          logDir

          +
          private java.lang.String logDir
          +
        • +
        + + + +
          +
        • +

          partsDir

          +
          private java.lang.String partsDir
          +
        • +
        + + + +
          +
        • +

          loggerServer

          +
          private Logger loggerServer
          +
        • +
        + + + +
          +
        • +

          loggerClient

          +
          private Logger loggerClient
          +
        • +
        + + + + + + + +
          +
        • +

          tracker

          +
          private HostItem tracker
          +
        • +
        + + + +
          +
        • +

          server

          +
          private HostItem server
          +
        • +
        + + + +
          +
        • +

          scanner

          +
          private java.util.Scanner scanner
          +
        • +
        + + + + +
      • +
      -
        -
      • +
      • Constructor Detail

        - +
        • ClientP2P

          -
          public ClientP2P()
          +
          public ClientP2P(java.lang.String hostnameServer,
          +                 int portServer,
          +                 java.lang.String hostnameTracker,
          +                 int portTracker)
          +
          Constructor.
          +
          +
          Parameters:
          +
          hostnameServer - hostname to bind
          +
          portServer - port to bind
          +
          hostnameTracker - hostname of tracker
          +
          portTracker - port of tracker
          +
      -
      -
        -
      • +
      • Method Detail

        - + + + +
          +
        • +

          initDirectoriesAndLoggers

          +
          public void initDirectoriesAndLoggers()
          +
          Initialize loggers if directories and logger are null, + else fail silently.
          +
        • +
        + + + +
          +
        • +

          printUsage

          +
          private static void printUsage(ServerPortRange serverPortRange,
          +                               TrackerPortRange trackerPortRange)
          +
          Print cli usage
          +
          +
          Parameters:
          +
          serverPortRange - range of server ports
          +
          trackerPortRange - range of tracker ports
          +
          +
        • +
        +
        • main

          -
          public static void main​(java.lang.String[] args)
          +
          public static void main(java.lang.String[] args)
          +
          Main program entry point. + 1rst parameter is optionnal, and is used to + define port used by the server module to listen. If not provided, default to another port.
          +
          +
          Parameters:
          +
          args - server listenning port
          +
      -
    -
    - diff --git a/doc/javadoc/clientP2P/class-use/ClientDownload.html b/doc/javadoc/clientP2P/class-use/ClientDownload.html new file mode 100644 index 0000000..a125f5e --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientDownload.html @@ -0,0 +1,229 @@ + + + + + +Uses of Class clientP2P.ClientDownload + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientDownload

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientDownloadPart.html b/doc/javadoc/clientP2P/class-use/ClientDownloadPart.html new file mode 100644 index 0000000..bd2b146 --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientDownloadPart.html @@ -0,0 +1,212 @@ + + + + + +Uses of Class clientP2P.ClientDownloadPart + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientDownloadPart

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/clientP2P/class-use/ClientP2P.html b/doc/javadoc/clientP2P/class-use/ClientDownloadPartTCP.html similarity index 50% rename from doc/clientP2P/class-use/ClientP2P.html rename to doc/javadoc/clientP2P/class-use/ClientDownloadPartTCP.html index c683e84..312f66b 100644 --- a/doc/clientP2P/class-use/ClientP2P.html +++ b/doc/javadoc/clientP2P/class-use/ClientDownloadPartTCP.html @@ -1,54 +1,39 @@ - + - -Uses of Class clientP2P.ClientP2P - - + +Uses of Class clientP2P.ClientDownloadPartTCP + - - - - - - - + -
    - -
    -
    -

    Uses of Class
    clientP2P.ClientP2P

    +

    Uses of Class
    clientP2P.ClientDownloadPartTCP

    -
    No usage of clientP2P.ClientP2P
    -
    - diff --git a/doc/javadoc/clientP2P/class-use/ClientDownloadPartUDP.html b/doc/javadoc/clientP2P/class-use/ClientDownloadPartUDP.html new file mode 100644 index 0000000..3809857 --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientDownloadPartUDP.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class clientP2P.ClientDownloadPartUDP + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientDownloadPartUDP

    +
    +
    No usage of clientP2P.ClientDownloadPartUDP
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientDownloadTCP.html b/doc/javadoc/clientP2P/class-use/ClientDownloadTCP.html new file mode 100644 index 0000000..e626fe5 --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientDownloadTCP.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class clientP2P.ClientDownloadTCP + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientDownloadTCP

    +
    +
    No usage of clientP2P.ClientDownloadTCP
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientDownloadUDP.html b/doc/javadoc/clientP2P/class-use/ClientDownloadUDP.html new file mode 100644 index 0000000..1adf0f6 --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientDownloadUDP.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class clientP2P.ClientDownloadUDP + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientDownloadUDP

    +
    +
    No usage of clientP2P.ClientDownloadUDP
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientInterface.html b/doc/javadoc/clientP2P/class-use/ClientInterface.html new file mode 100644 index 0000000..bfb8550 --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientInterface.html @@ -0,0 +1,190 @@ + + + + + +Uses of Class clientP2P.ClientInterface + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientInterface

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientInterfaceCLI.html b/doc/javadoc/clientP2P/class-use/ClientInterfaceCLI.html new file mode 100644 index 0000000..bae48de --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientInterfaceCLI.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class clientP2P.ClientInterfaceCLI + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientInterfaceCLI

    +
    +
    No usage of clientP2P.ClientInterfaceCLI
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/clientP2P/class-use/ClientManagement.html b/doc/javadoc/clientP2P/class-use/ClientManagement.html new file mode 100644 index 0000000..33e3faf --- /dev/null +++ b/doc/javadoc/clientP2P/class-use/ClientManagement.html @@ -0,0 +1,260 @@ + + + + + +Uses of Class clientP2P.ClientManagement + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    clientP2P.ClientManagement

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/clientP2P/class-use/ClientManagementUDP.html b/doc/javadoc/clientP2P/class-use/ClientManagementTCP.html similarity index 51% rename from doc/clientP2P/class-use/ClientManagementUDP.html rename to doc/javadoc/clientP2P/class-use/ClientManagementTCP.html index 823f84b..a9d820e 100644 --- a/doc/clientP2P/class-use/ClientManagementUDP.html +++ b/doc/javadoc/clientP2P/class-use/ClientManagementTCP.html @@ -1,54 +1,39 @@ - + - -Uses of Class clientP2P.ClientManagementUDP - - + +Uses of Class clientP2P.ClientManagementTCP + - - - - - - - + -
    - -
    -
    -

    Uses of Class
    clientP2P.ClientManagementUDP

    +

    Uses of Class
    clientP2P.ClientManagementTCP

    -
    No usage of clientP2P.ClientManagementUDP
    -
    - diff --git a/doc/javadoc/clientP2P/class-use/ClientManagementUDP.html b/doc/javadoc/clientP2P/class-use/ClientManagementUDP.html index 823f84b..9d44432 100644 --- a/doc/javadoc/clientP2P/class-use/ClientManagementUDP.html +++ b/doc/javadoc/clientP2P/class-use/ClientManagementUDP.html @@ -1,22 +1,12 @@ - + - + Uses of Class clientP2P.ClientManagementUDP - - + - - - - - - - + -
    - -
    -

    Uses of Class
    clientP2P.ClientManagementUDP

    No usage of clientP2P.ClientManagementUDP
    -
    - diff --git a/doc/javadoc/clientP2P/class-use/ClientP2P.html b/doc/javadoc/clientP2P/class-use/ClientP2P.html index c683e84..25e5e48 100644 --- a/doc/javadoc/clientP2P/class-use/ClientP2P.html +++ b/doc/javadoc/clientP2P/class-use/ClientP2P.html @@ -1,22 +1,12 @@ - + - + Uses of Class clientP2P.ClientP2P - - + - - - - - - - + -
    - -
    -

    Uses of Class
    clientP2P.ClientP2P

    No usage of clientP2P.ClientP2P
    -
    - diff --git a/doc/javadoc/clientP2P/package-frame.html b/doc/javadoc/clientP2P/package-frame.html new file mode 100644 index 0000000..1f088ad --- /dev/null +++ b/doc/javadoc/clientP2P/package-frame.html @@ -0,0 +1,31 @@ + + + + + +clientP2P + + + + + +

    clientP2P

    +
    +

    Classes

    + +
    + + diff --git a/doc/javadoc/clientP2P/package-summary.html b/doc/javadoc/clientP2P/package-summary.html index 7b61596..b467a1a 100644 --- a/doc/javadoc/clientP2P/package-summary.html +++ b/doc/javadoc/clientP2P/package-summary.html @@ -1,22 +1,12 @@ - + - + clientP2P - - + - - - - - - - + -
    - -
    -

    Package clientP2P

    -
    - diff --git a/doc/javadoc/clientP2P/package-tree.html b/doc/javadoc/clientP2P/package-tree.html index 857ef3c..815b315 100644 --- a/doc/javadoc/clientP2P/package-tree.html +++ b/doc/javadoc/clientP2P/package-tree.html @@ -1,22 +1,12 @@ - + - + clientP2P Class Hierarchy - - + - - - - - - - + -
    - -
    -

    Hierarchy For Package clientP2P

    Package Hierarchies: @@ -102,31 +77,52 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    -

    Class Hierarchy

    -
    -
    - diff --git a/doc/javadoc/clientP2P/package-use.html b/doc/javadoc/clientP2P/package-use.html index 357bd81..7fd5502 100644 --- a/doc/javadoc/clientP2P/package-use.html +++ b/doc/javadoc/clientP2P/package-use.html @@ -1,22 +1,12 @@ - + - + Uses of Package clientP2P - - + - - - - - - - + -
    - -
    -

    Uses of Package
    clientP2P

    -
    No usage of clientP2P
    -
    - diff --git a/doc/javadoc/constant-values.html b/doc/javadoc/constant-values.html index 2ddc13d..edb99a1 100644 --- a/doc/javadoc/constant-values.html +++ b/doc/javadoc/constant-values.html @@ -1,22 +1,12 @@ - + - + Constant Field Values - - + - - - - - - - + -
    - -
    -
    +
    + + +

    clientP2P.*

    + + + + +

    exception.*

    + + + + +

    gui.*

    + + + + +

    localException.*

    + + + + +

    protocolP2P.*

    + + + + +

    remoteException.*

    + + + + +

    serverP2P.*

    +
      +
    • + + + + + + + + + + + + + + +
      serverP2P.RatioWatcher 
      Modifier and TypeConstant FieldValue
      + +static final doublepunishmentFactor1.2
      +
    • +
    • + + + + + + + + + + + + + + + + + + + +
      serverP2P.ServerP2P 
      Modifier and TypeConstant FieldValue
      + +static final booleanDEBUGtrue
      + +private static final java.lang.Stringsubdir"seeded/"
      +
    • +
    + + + +

    tracker.*

    +
      +
    • + + + + + + + + + + + + + + +
      tracker.Tracker 
      Modifier and TypeConstant FieldValue
      + +static final booleanDEBUGtrue
      +
    • +
    -
    - diff --git a/doc/javadoc/deprecated-list.html b/doc/javadoc/deprecated-list.html index f66ed65..324d860 100644 --- a/doc/javadoc/deprecated-list.html +++ b/doc/javadoc/deprecated-list.html @@ -1,22 +1,12 @@ - + - + Deprecated List - - + - - - - - - - + -
    - -
    -

    Deprecated API

    Contents

    -
    - diff --git a/doc/javadoc/exception/LocalException.html b/doc/javadoc/exception/LocalException.html new file mode 100644 index 0000000..6b2d5c3 --- /dev/null +++ b/doc/javadoc/exception/LocalException.html @@ -0,0 +1,306 @@ + + + + + +LocalException + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    exception
    +

    Class LocalException

    +
    +
    + +
    + +
    +
    +
      +
    • + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private static longserialVersionUID 
        +
      • +
      + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        LocalException() 
        +
      • +
      + +
        +
      • + + +

        Method Summary

        +
          +
        • + + +

          Methods inherited from class java.lang.Throwable

          +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + + + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          LocalException

          +
          public LocalException()
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/exception/RemoteException.html b/doc/javadoc/exception/RemoteException.html new file mode 100644 index 0000000..ee89c7a --- /dev/null +++ b/doc/javadoc/exception/RemoteException.html @@ -0,0 +1,306 @@ + + + + + +RemoteException + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    exception
    +

    Class RemoteException

    +
    +
    + +
    + +
    +
    +
      +
    • + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private static longserialVersionUID 
        +
      • +
      + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        RemoteException() 
        +
      • +
      + +
        +
      • + + +

        Method Summary

        +
          +
        • + + +

          Methods inherited from class java.lang.Throwable

          +addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + + + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          RemoteException

          +
          public RemoteException()
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/exception/SizeError.html b/doc/javadoc/exception/SizeError.html deleted file mode 100644 index 8dcc9c8..0000000 --- a/doc/javadoc/exception/SizeError.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - -SizeError - - - - - - - - - - - - - - - -
    - -
    - -
    -
    -
    Package exception
    -

    Class SizeError

    -
    -
    -
      -
    • java.lang.Object
    • -
    • -
        -
      • java.lang.Throwable
      • -
      • -
          -
        • java.lang.Exception
        • -
        • -
            -
          • exception.SizeError
          • -
          -
        • -
        -
      • -
      -
    • -
    -
    -
      -
    • -
      -
      All Implemented Interfaces:
      -
      java.io.Serializable
      -
      -
      -
      public class SizeError
      -extends java.lang.Exception
      -
      Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
      -
      -
      See Also:
      -
      Serialized Form
      -
      -
    • -
    -
    -
    -
      -
    • - -
      -
        -
      • - - -

        Constructor Summary

        - - - - - - - - - - -
        Constructors 
        ConstructorDescription
        SizeError() 
        -
      • -
      -
      - -
      -
        -
      • - - -

        Method Summary

        -
          -
        • - - -

          Methods inherited from class java.lang.Throwable

          -addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
        • -
        -
          -
        • - - -

          Methods inherited from class java.lang.Object

          -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • -
        -
      • -
      -
      -
    • -
    -
    -
    -
      -
    • - -
      -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          SizeError

          -
          public SizeError()
          -
        • -
        -
      • -
      -
      -
    • -
    -
    -
    -
    - - - - diff --git a/doc/javadoc/exception/VersionError.html b/doc/javadoc/exception/VersionError.html deleted file mode 100644 index efdb32b..0000000 --- a/doc/javadoc/exception/VersionError.html +++ /dev/null @@ -1,294 +0,0 @@ - - - - - -VersionError - - - - - - - - - - - - - - - -
    - -
    - -
    -
    -
    Package exception
    -

    Class VersionError

    -
    -
    -
      -
    • java.lang.Object
    • -
    • -
        -
      • java.lang.Throwable
      • -
      • -
          -
        • java.lang.Exception
        • -
        • -
            -
          • exception.VersionError
          • -
          -
        • -
        -
      • -
      -
    • -
    -
    -
      -
    • -
      -
      All Implemented Interfaces:
      -
      java.io.Serializable
      -
      -
      -
      public class VersionError
      -extends java.lang.Exception
      -
      -
      See Also:
      -
      Serialized Form
      -
      -
    • -
    -
    -
    -
      -
    • - -
      -
        -
      • - - -

        Constructor Summary

        - - - - - - - - - - -
        Constructors 
        ConstructorDescription
        VersionError() 
        -
      • -
      -
      - -
      -
        -
      • - - -

        Method Summary

        -
          -
        • - - -

          Methods inherited from class java.lang.Throwable

          -addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
        • -
        -
          -
        • - - -

          Methods inherited from class java.lang.Object

          -equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • -
        -
      • -
      -
      -
    • -
    -
    -
    -
      -
    • - -
      -
        -
      • - - -

        Constructor Detail

        - - - -
          -
        • -

          VersionError

          -
          public VersionError()
          -
        • -
        -
      • -
      -
      -
    • -
    -
    -
    -
    - - - - diff --git a/doc/javadoc/exception/class-use/InternalError.html b/doc/javadoc/exception/class-use/InternalError.html deleted file mode 100644 index 4970a81..0000000 --- a/doc/javadoc/exception/class-use/InternalError.html +++ /dev/null @@ -1,249 +0,0 @@ - - - - - -Uses of Class exception.InternalError - - - - - - - - - - - - - - - -
    - -
    -
    -
    -

    Uses of Class
    exception.InternalError

    -
    -
    -
      -
    • - - - - - - - - - - - - -
      Packages that use InternalError 
      PackageDescription
      protocolP2P 
      -
    • -
    • -
        -
      • -
        - - -

        Uses of InternalError in protocolP2P

        - - - - - - - - - - - - - - - - - - - - - - - - -
        Methods in protocolP2P that throw InternalError 
        Modifier and TypeMethodDescription
        static ProtocolP2PDatagramProtocolP2PDatagram.receive​(java.net.DatagramSocket socket) -
        Receive datagram on socket
        -
        voidProtocolP2PDatagram.send​(java.net.DatagramSocket socket, - java.lang.String host, - int port) -
        Send datagram on socket (from client)
        -
        voidProtocolP2PDatagram.send​(java.net.DatagramSocket socket, - ProtocolP2PDatagram received) -
        Send datagram on socket (from server, as a response)
        -
        - - - - - - - - - - - - - - - - - - - - - - - - -
        Constructors in protocolP2P that throw InternalError 
        ConstructorDescription
        FileList​(java.lang.String[] fileList) -
        Constructor (typically used by the server) with an ArrayList parameter containing - filenames.
        -
        FilePart​(java.lang.String filename, - long totalSize, - long offset, - byte[] partialContent) -
        Constructor (typically used by server) with informations about file part to send as parameters.
        -
        LoadRequest​(java.lang.String filename) -
        Constructor (typically used by the server) with a filename parameter.
        -
        Payload​(RequestResponseCode requestResponseCode) -
        Consructor used to create Payload with a payload size of zero using a RRCode.
        -
        -
        -
      • -
      -
    • -
    -
    -
    - - - diff --git a/doc/javadoc/exception/class-use/LocalException.html b/doc/javadoc/exception/class-use/LocalException.html new file mode 100644 index 0000000..81f0d3c --- /dev/null +++ b/doc/javadoc/exception/class-use/LocalException.html @@ -0,0 +1,234 @@ + + + + + +Uses of Class exception.LocalException + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    exception.LocalException

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/exception/class-use/ProtocolError.html b/doc/javadoc/exception/class-use/ProtocolError.html deleted file mode 100644 index 66d7d95..0000000 --- a/doc/javadoc/exception/class-use/ProtocolError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.ProtocolError - - - - - - - - - - - - - - - -
    - -
    -
    -
    -

    Uses of Class
    exception.ProtocolError

    -
    -
    - -
    -
    - - - diff --git a/doc/javadoc/exception/class-use/RemoteException.html b/doc/javadoc/exception/class-use/RemoteException.html new file mode 100644 index 0000000..0163842 --- /dev/null +++ b/doc/javadoc/exception/class-use/RemoteException.html @@ -0,0 +1,192 @@ + + + + + +Uses of Class exception.RemoteException + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    exception.RemoteException

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/exception/class-use/SizeError.html b/doc/javadoc/exception/class-use/SizeError.html deleted file mode 100644 index 6a13d5b..0000000 --- a/doc/javadoc/exception/class-use/SizeError.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - - -Uses of Class exception.SizeError - - - - - - - - - - - - - - - -
    - -
    -
    -
    -

    Uses of Class
    exception.SizeError

    -
    -
    -
      -
    • - - - - - - - - - - - - - - - - -
      Packages that use SizeError 
      PackageDescription
      protocolP2P 
      tools 
      -
    • -
    • -
        -
      • -
        - - -

        Uses of SizeError in protocolP2P

        - - - - - - - - - - - - - - -
        Methods in protocolP2P that throw SizeError 
        Modifier and TypeMethodDescription
        static ProtocolP2PDatagramProtocolP2PDatagram.receive​(java.net.DatagramSocket socket) -
        Receive datagram on socket
        -
        -
        -
      • -
      • -
        - - -

        Uses of SizeError in tools

        - - - - - - - - - - - - - - - - - - - -
        Methods in tools that throw SizeError 
        Modifier and TypeMethodDescription
        static intBytesArrayTools.readInt​(byte[] array, - int start) -
        Read int from a bytearray
        -
        static longBytesArrayTools.readLong​(byte[] array, - int start) -
        Read long from a bytearray
        -
        -
        -
      • -
      -
    • -
    -
    -
    - - - diff --git a/doc/javadoc/exception/class-use/TransmissionError.html b/doc/javadoc/exception/class-use/TransmissionError.html deleted file mode 100644 index 4676064..0000000 --- a/doc/javadoc/exception/class-use/TransmissionError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.TransmissionError - - - - - - - - - - - - - - - -
    - -
    -
    -
    -

    Uses of Class
    exception.TransmissionError

    -
    -
    - -
    -
    - - - diff --git a/doc/javadoc/exception/class-use/VersionError.html b/doc/javadoc/exception/class-use/VersionError.html deleted file mode 100644 index bd73afc..0000000 --- a/doc/javadoc/exception/class-use/VersionError.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - -Uses of Class exception.VersionError - - - - - - - - - - - - - - - -
    - -
    -
    -
    -

    Uses of Class
    exception.VersionError

    -
    -
    - -
    -
    - - - diff --git a/doc/javadoc/exception/package-frame.html b/doc/javadoc/exception/package-frame.html new file mode 100644 index 0000000..2d4cf34 --- /dev/null +++ b/doc/javadoc/exception/package-frame.html @@ -0,0 +1,21 @@ + + + + + +exception + + + + + +

    exception

    +
    +

    Exceptions

    + +
    + + diff --git a/doc/javadoc/exception/package-summary.html b/doc/javadoc/exception/package-summary.html index 5144923..e7d6a13 100644 --- a/doc/javadoc/exception/package-summary.html +++ b/doc/javadoc/exception/package-summary.html @@ -1,22 +1,12 @@ - + - + exception - - + - - - - - - - + -
    - -
    -

    Package exception

    • - +
      @@ -108,25 +83,11 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); - + - - - - - - - - - - - - - + @@ -134,19 +95,16 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height")); - - diff --git a/doc/javadoc/exception/package-tree.html b/doc/javadoc/exception/package-tree.html index 35a3531..456ba16 100644 --- a/doc/javadoc/exception/package-tree.html +++ b/doc/javadoc/exception/package-tree.html @@ -1,22 +1,12 @@ - + - +exception Class Hierarchy - - + - - - - - - - + -
      - -
      -

      Hierarchy For Package exception

      Package Hierarchies: @@ -102,20 +77,16 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
      -

      Class Hierarchy

      -
      -
      - diff --git a/doc/javadoc/exception/package-use.html b/doc/javadoc/exception/package-use.html index 1a77d64..9788ca1 100644 --- a/doc/javadoc/exception/package-use.html +++ b/doc/javadoc/exception/package-use.html @@ -1,22 +1,12 @@ - + - +Uses of Package exception - - + - - - - - - - + -
      - -
      -

      Uses of Package
      exception

      • -
      Exception Summary 
      Exception
      InternalErrorLocalException  
      ProtocolError 
      SizeError -
      Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
      -
      TransmissionError 
      VersionErrorRemoteException  
      - +
      Packages that use exception 
      + - + - + + + + + + + + +
      Packages that use exception 
      Package Description
      protocolP2PlocalException  
      toolsremoteException 
      serverP2P 
      tracker  
    • -
    • +
    • - - +
      Classes in exception used by protocolP2P 
      + - - + - - + - - - + +
      Classes in exception used by localException 
      ClassDescriptionClass and Description
      InternalError LocalException 
      ProtocolError 
      +
    • +
    • + + + + + + + - - + - - - + +
      Classes in exception used by remoteException 
      Class and Description
      SizeError -
      Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
      -
      RemoteException 
      TransmissionError 
      +
    • +
    • + + + + + + + - - +
      Classes in exception used by serverP2P 
      Class and Description
      VersionError LocalException 
    • -
    • +
    • - - +
      Classes in exception used by tools 
      + - - + - - +
      Classes in exception used by tracker 
      ClassDescriptionClass and Description
      SizeError -
      Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
      -
      LocalException 
    -
    - diff --git a/doc/javadoc/gui/ArgumentsGen.html b/doc/javadoc/gui/ArgumentsGen.html new file mode 100644 index 0000000..8ba214c --- /dev/null +++ b/doc/javadoc/gui/ArgumentsGen.html @@ -0,0 +1,632 @@ + + + + + +ArgumentsGen + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class ArgumentsGen

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
      +
      +
      +
      +
      public class ArgumentsGen
      +extends javax.swing.JPanel
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Nested Class Summary

        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JPanel

          +javax.swing.JPanel.AccessibleJPanel
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JComponent

          +javax.swing.JComponent.AccessibleJComponent
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Container

          +java.awt.Container.AccessibleAWTContainer
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Component

          +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
        • +
        +
      • +
      + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private javax.swing.JButtonjButton1 
        private javax.swing.JComboBox<java.lang.String>jComboBox1 
        private javax.swing.JLabeljLabel1 
        private javax.swing.JLabeljLabel2 
        private javax.swing.JLabeljLabel3 
        private javax.swing.JLabeljLabel4 
        private javax.swing.JLabeljLabel5 
        private javax.swing.JLabeljLabel6 
        private javax.swing.JTextFieldjTextField1 
        private javax.swing.JTextFieldjTextField2 
        private javax.swing.JTextFieldjTextField3 
        private javax.swing.JTextFieldjTextField4 
        private static longserialVersionUID 
        +
          +
        • + + +

          Fields inherited from class javax.swing.JComponent

          +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Component

          +accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
        • +
        +
          +
        • + + +

          Fields inherited from interface java.awt.image.ImageObserver

          +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        ArgumentsGen() +
        Creates new form ArgumentsGen
        +
        +
      • +
      + +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethod and Description
        private voidinitComponents() +
        This method is called from within the constructor to initialize the form.
        +
        private voidjButton1ActionPerformed(java.awt.event.ActionEvent evt) +
        Actions when click on connect: creat a clientP2Pgui with the infos from textfields
        +
        private voidjTextField1ActionPerformed(java.awt.event.ActionEvent evt) 
        private voidjTextField2ActionPerformed(java.awt.event.ActionEvent evt) 
        +
          +
        • + + +

          Methods inherited from class javax.swing.JPanel

          +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
        • +
        +
          +
        • + + +

          Methods inherited from class javax.swing.JComponent

          +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Container

          +add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Component

          +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          jButton1

          +
          private javax.swing.JButton jButton1
          +
        • +
        + + + +
          +
        • +

          jComboBox1

          +
          private javax.swing.JComboBox<java.lang.String> jComboBox1
          +
        • +
        + + + +
          +
        • +

          jLabel1

          +
          private javax.swing.JLabel jLabel1
          +
        • +
        + + + +
          +
        • +

          jLabel2

          +
          private javax.swing.JLabel jLabel2
          +
        • +
        + + + +
          +
        • +

          jLabel3

          +
          private javax.swing.JLabel jLabel3
          +
        • +
        + + + +
          +
        • +

          jLabel4

          +
          private javax.swing.JLabel jLabel4
          +
        • +
        + + + +
          +
        • +

          jLabel5

          +
          private javax.swing.JLabel jLabel5
          +
        • +
        + + + +
          +
        • +

          jLabel6

          +
          private javax.swing.JLabel jLabel6
          +
        • +
        + + + +
          +
        • +

          jTextField1

          +
          private javax.swing.JTextField jTextField1
          +
        • +
        + + + +
          +
        • +

          jTextField2

          +
          private javax.swing.JTextField jTextField2
          +
        • +
        + + + +
          +
        • +

          jTextField3

          +
          private javax.swing.JTextField jTextField3
          +
        • +
        + + + +
          +
        • +

          jTextField4

          +
          private javax.swing.JTextField jTextField4
          +
        • +
        + + + +
          +
        • +

          serialVersionUID

          +
          private static final long serialVersionUID
          +
          +
          See Also:
          +
          Constant Field Values
          +
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ArgumentsGen

          +
          public ArgumentsGen()
          +
          Creates new form ArgumentsGen
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          initComponents

          +
          private void initComponents()
          +
          This method is called from within the constructor to initialize the form.
          +
        • +
        + + + +
          +
        • +

          jTextField1ActionPerformed

          +
          private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt)
          +
        • +
        + + + +
          +
        • +

          jTextField2ActionPerformed

          +
          private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt)
          +
        • +
        + + + +
          +
        • +

          jButton1ActionPerformed

          +
          private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
          +
          Actions when click on connect: creat a clientP2Pgui with the infos from textfields
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/ClientInterfaceGUI.html b/doc/javadoc/gui/ClientInterfaceGUI.html new file mode 100644 index 0000000..22261d2 --- /dev/null +++ b/doc/javadoc/gui/ClientInterfaceGUI.html @@ -0,0 +1,395 @@ + + + + + +ClientInterfaceGUI + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class ClientInterfaceGUI

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.lang.Runnable
      +
      +
      +
      +
      public class ClientInterfaceGUI
      +extends ClientInterface
      +
      Implementation of P2P-JAVA-PROJECT CLIENT interface for CLI
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + + + + + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          run

          +
          public void run()
          +
          Implementation of Runnable
          +
        • +
        + + + +
          +
        • +

          initHostList

          +
          private boolean initHostList()
          +
          Initialization of hostList with retry in failure
          +
          +
          Returns:
          +
          true if successfully initialized
          +
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/ClientP2PGUI.html b/doc/javadoc/gui/ClientP2PGUI.html new file mode 100644 index 0000000..6213c48 --- /dev/null +++ b/doc/javadoc/gui/ClientP2PGUI.html @@ -0,0 +1,514 @@ + + + + + +ClientP2PGUI + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class ClientP2PGUI

    +
    +
    + +
    +
      +
    • +
      +
      +
      public class ClientP2PGUI
      +extends java.lang.Object
      +
      Client + Server implementation in GUI
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      +
    • +
    +
    +
    +
      +
    • + + + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        ClientP2PGUI(java.lang.String hostnameServer, + int portServer, + java.lang.String hostnameTracker, + int portTracker, + java.lang.String protocolP2P) +
        Constructor.
        +
        +
      • +
      + +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethod and Description
        voidconnect() +
        Initiate a connection using fields from ArgumentsGen
        +
        voidinitDirectoriesAndLoggers() +
        Initialize loggers if directories and logger are null, + else fail silently.
        +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          logDir

          +
          private java.lang.String logDir
          +
        • +
        + + + +
          +
        • +

          partsDir

          +
          private java.lang.String partsDir
          +
        • +
        + + + +
          +
        • +

          loggerServer

          +
          private Logger loggerServer
          +
        • +
        + + + +
          +
        • +

          loggerClient

          +
          private Logger loggerClient
          +
        • +
        + + + + + + + +
          +
        • +

          tracker

          +
          private HostItem tracker
          +
        • +
        + + + +
          +
        • +

          server

          +
          private HostItem server
          +
        • +
        + + + + + + + +
          +
        • +

          hostnameServer

          +
          private java.lang.String hostnameServer
          +
        • +
        + + + +
          +
        • +

          hostnameTracker

          +
          private java.lang.String hostnameTracker
          +
        • +
        + + + +
          +
        • +

          portServer

          +
          private int portServer
          +
        • +
        + + + +
          +
        • +

          portTracker

          +
          private int portTracker
          +
        • +
        + + + +
          +
        • +

          protocolP2P

          +
          private java.lang.String protocolP2P
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ClientP2PGUI

          +
          public ClientP2PGUI(java.lang.String hostnameServer,
          +                    int portServer,
          +                    java.lang.String hostnameTracker,
          +                    int portTracker,
          +                    java.lang.String protocolP2P)
          +
          Constructor.
          +
          +
          Parameters:
          +
          hostnameServer - hostname to bind
          +
          portServer - port to bind
          +
          hostnameTracker - hostname of tracker
          +
          portTracker - port of tracker
          +
          protocolP2P - protocol used
          +
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          initDirectoriesAndLoggers

          +
          public void initDirectoriesAndLoggers()
          +
          Initialize loggers if directories and logger are null, + else fail silently.
          +
        • +
        + + + +
          +
        • +

          connect

          +
          public void connect()
          +
          Initiate a connection using fields from ArgumentsGen
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/DownloadFileGUI.html b/doc/javadoc/gui/DownloadFileGUI.html new file mode 100644 index 0000000..6042ad9 --- /dev/null +++ b/doc/javadoc/gui/DownloadFileGUI.html @@ -0,0 +1,497 @@ + + + + + +DownloadFileGUI + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class DownloadFileGUI

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
      +
      +
      +
      +
      public class DownloadFileGUI
      +extends javax.swing.JPanel
      +
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Nested Class Summary

        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JPanel

          +javax.swing.JPanel.AccessibleJPanel
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JComponent

          +javax.swing.JComponent.AccessibleJComponent
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Container

          +java.awt.Container.AccessibleAWTContainer
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Component

          +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
        • +
        +
      • +
      + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private ClientManagementclientManagement 
        private java.lang.StringfileToDownload 
        private Loggerlogger 
        private static longserialVersionUID 
        private ServerManagementTCPsmtcp 
        private ServerManagementUDPsmudp 
        +
          +
        • + + +

          Fields inherited from class javax.swing.JComponent

          +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Component

          +accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
        • +
        +
          +
        • + + +

          Fields inherited from interface java.awt.image.ImageObserver

          +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
        • +
        +
      • +
      + + + +
        +
      • + + +

        Method Summary

        + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethod and Description
        voiddownload() 
        +
          +
        • + + +

          Methods inherited from class javax.swing.JPanel

          +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
        • +
        +
          +
        • + + +

          Methods inherited from class javax.swing.JComponent

          +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Container

          +add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Component

          +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    + +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/DownloadSelectionGen.html b/doc/javadoc/gui/DownloadSelectionGen.html new file mode 100644 index 0000000..b43db87 --- /dev/null +++ b/doc/javadoc/gui/DownloadSelectionGen.html @@ -0,0 +1,608 @@ + + + + + +DownloadSelectionGen + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class DownloadSelectionGen

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
      +
      +
      +
      +
      public class DownloadSelectionGen
      +extends javax.swing.JPanel
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Nested Class Summary

        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JPanel

          +javax.swing.JPanel.AccessibleJPanel
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JComponent

          +javax.swing.JComponent.AccessibleJComponent
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Container

          +java.awt.Container.AccessibleAWTContainer
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Component

          +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
        • +
        +
      • +
      + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private ClientManagementclientManagement 
        private javax.swing.JButtonjButton1 
        private javax.swing.JButtonjButton2 
        private javax.swing.JLabeljLabel1 
        private javax.swing.JList<java.lang.String>jList1 
        private javax.swing.JScrollPanejScrollPane1 
        private java.lang.String[]listFilesToDownload 
        private Loggerlogger 
        private static longserialVersionUID 
        private ServerManagementTCPsmtcp 
        private ServerManagementUDPsmudp 
        +
          +
        • + + +

          Fields inherited from class javax.swing.JComponent

          +listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Component

          +accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
        • +
        +
          +
        • + + +

          Fields inherited from interface java.awt.image.ImageObserver

          +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
        • +
        +
      • +
      + + + +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethod and Description
        private voidinitComponents() +
        This method is called from within the constructor to initialize the form.
        +
        private voidjButton1ActionPerformed(java.awt.event.ActionEvent evt) +
        Actions to initiate when button "Download" is pressed
        +
        private voidjButton2ActionPerformed(java.awt.event.ActionEvent evt) +
        Actions to initiate when button "Back" is initiate
        +
        +
          +
        • + + +

          Methods inherited from class javax.swing.JPanel

          +getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
        • +
        +
          +
        • + + +

          Methods inherited from class javax.swing.JComponent

          +addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Container

          +add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Component

          +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          jButton1

          +
          private javax.swing.JButton jButton1
          +
        • +
        + + + +
          +
        • +

          jButton2

          +
          private javax.swing.JButton jButton2
          +
        • +
        + + + +
          +
        • +

          jLabel1

          +
          private javax.swing.JLabel jLabel1
          +
        • +
        + + + +
          +
        • +

          jList1

          +
          private javax.swing.JList<java.lang.String> jList1
          +
        • +
        + + + +
          +
        • +

          jScrollPane1

          +
          private javax.swing.JScrollPane jScrollPane1
          +
        • +
        + + + +
          +
        • +

          serialVersionUID

          +
          private static final long serialVersionUID
          +
          +
          See Also:
          +
          Constant Field Values
          +
          +
        • +
        + + + +
          +
        • +

          listFilesToDownload

          +
          private java.lang.String[] listFilesToDownload
          +
        • +
        + + + + + + + +
          +
        • +

          logger

          +
          private Logger logger
          +
        • +
        + + + + + + + + +
      • +
      + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          DownloadSelectionGen

          +
          public DownloadSelectionGen(java.lang.String[] listFilesToDownload,
          +                            ClientManagement clientManagement,
          +                            Logger logger,
          +                            ServerManagementTCP smtcp,
          +                            ServerManagementUDP smudp)
          +
          +
          Parameters:
          +
          listFilesToDownload - list of files to display
          +
          clientManagement - clientManagement
          +
          logger - logger + Creates new form ArgumentsGen
          +
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          initComponents

          +
          private void initComponents()
          +
          This method is called from within the constructor to initialize the form.
          +
        • +
        + + + +
          +
        • +

          jButton1ActionPerformed

          +
          private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
          +
          Actions to initiate when button "Download" is pressed
          +
        • +
        + + + +
          +
        • +

          jButton2ActionPerformed

          +
          private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
          +
          Actions to initiate when button "Back" is initiate
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/ErrorFrame.html b/doc/javadoc/gui/ErrorFrame.html new file mode 100644 index 0000000..cf5c923 --- /dev/null +++ b/doc/javadoc/gui/ErrorFrame.html @@ -0,0 +1,531 @@ + + + + + +ErrorFrame + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class ErrorFrame

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
      +
      +
      +
      +
      public class ErrorFrame
      +extends javax.swing.JFrame
      +
      +
      Version:
      +
      1.0
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Nested Class Summary

        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JFrame

          +javax.swing.JFrame.AccessibleJFrame
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Frame

          +java.awt.Frame.AccessibleAWTFrame
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Window

          +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Container

          +java.awt.Container.AccessibleAWTContainer
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Component

          +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
        • +
        +
      • +
      + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + + + + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private javax.swing.JLabeljLabel1 
        private javax.swing.JToggleButtonjToggleButton1 
        private java.lang.Stringmessage 
        private static longserialVersionUID 
        +
          +
        • + + +

          Fields inherited from class javax.swing.JFrame

          +accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Frame

          +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Component

          +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
        • +
        +
          +
        • + + +

          Fields inherited from interface javax.swing.WindowConstants

          +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
        • +
        +
          +
        • + + +

          Fields inherited from interface java.awt.image.ImageObserver

          +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        ErrorFrame(java.lang.String message) 
        +
      • +
      + +
        +
      • + + +

        Method Summary

        + + + + + + + + + + + + + + +
        All Methods Instance Methods Concrete Methods 
        Modifier and TypeMethod and Description
        private voidinitComponents() +
        This method is called from within the constructor to initialize the form.
        +
        private voidjToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) +
        force exit the program when the button "Close" is pressed
        +
        +
          +
        • + + +

          Methods inherited from class javax.swing.JFrame

          +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Frame

          +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Window

          +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Container

          +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Component

          +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
          +
        • + + +

          Methods inherited from interface java.awt.MenuContainer

          +getFont, postEvent
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Field Detail

        + + + +
          +
        • +

          jLabel1

          +
          private javax.swing.JLabel jLabel1
          +
        • +
        + + + +
          +
        • +

          jToggleButton1

          +
          private javax.swing.JToggleButton jToggleButton1
          +
        • +
        + + + +
          +
        • +

          message

          +
          private java.lang.String message
          +
        • +
        + + + +
          +
        • +

          serialVersionUID

          +
          private static final long serialVersionUID
          +
          +
          See Also:
          +
          Constant Field Values
          +
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          ErrorFrame

          +
          public ErrorFrame(java.lang.String message)
          +
          +
          Parameters:
          +
          message - error message that will be displayed + Create new Errorframe, used to display an error and stop the program when needed
          +
          +
        • +
        +
      • +
      + +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          initComponents

          +
          private void initComponents()
          +
          This method is called from within the constructor to initialize the form.
          +
        • +
        + + + +
          +
        • +

          jToggleButton1ActionPerformed

          +
          private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt)
          +
          force exit the program when the button "Close" is pressed
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/serverP2P/ServerP2P.html b/doc/javadoc/gui/Gui.html similarity index 58% rename from doc/serverP2P/ServerP2P.html rename to doc/javadoc/gui/Gui.html index 0d119dc..2fc84e0 100644 --- a/doc/serverP2P/ServerP2P.html +++ b/doc/javadoc/gui/Gui.html @@ -1,61 +1,46 @@ - + - -ServerP2P - - + +Gui + - - - - - - - + -
    - -
    -
    -
    Package serverP2P
    -

    Class ServerP2P

    +
    gui
    +

    Class Gui

    • java.lang.Object
      • -
      • serverP2P.ServerP2P
      • +
      • gui.Gui
    @@ -133,8 +108,17 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));

    • -
      public class ServerP2P
      +
      +
      public class Gui
       extends java.lang.Object
      +
      Class to download file
      +
      +
      Version:
      +
      1.0 + Class used to create the Graphical interface
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
    @@ -142,56 +126,48 @@ extends java.lang.Object @@ -199,64 +175,57 @@ extends java.lang.Object -
    - diff --git a/doc/javadoc/gui/MainWindow.html b/doc/javadoc/gui/MainWindow.html new file mode 100644 index 0000000..a84a5f8 --- /dev/null +++ b/doc/javadoc/gui/MainWindow.html @@ -0,0 +1,436 @@ + + + + + +MainWindow + + + + + + + + +
    + + + + + + + +
    + + + +
    +
    gui
    +

    Class MainWindow

    +
    +
    + +
    +
      +
    • +
      +
      All Implemented Interfaces:
      +
      java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
      +
      +
      +
      +
      public class MainWindow
      +extends javax.swing.JFrame
      +
      Class to download file
      +
      +
      Version:
      +
      1.0 + Class used to create the main window of the GUI
      +
      Author:
      +
      Louis Royer, Flavien Haas, JS Auge
      +
      See Also:
      +
      Serialized Form
      +
      +
    • +
    +
    +
    +
      +
    • + +
        +
      • + + +

        Nested Class Summary

        +
          +
        • + + +

          Nested classes/interfaces inherited from class javax.swing.JFrame

          +javax.swing.JFrame.AccessibleJFrame
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Frame

          +java.awt.Frame.AccessibleAWTFrame
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Window

          +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Container

          +java.awt.Container.AccessibleAWTContainer
        • +
        +
          +
        • + + +

          Nested classes/interfaces inherited from class java.awt.Component

          +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
        • +
        +
      • +
      + +
        +
      • + + +

        Field Summary

        + + + + + + + + + + +
        Fields 
        Modifier and TypeField and Description
        private static longserialVersionUID 
        +
          +
        • + + +

          Fields inherited from class javax.swing.JFrame

          +accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Frame

          +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
        • +
        +
          +
        • + + +

          Fields inherited from class java.awt.Component

          +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
        • +
        +
          +
        • + + +

          Fields inherited from interface javax.swing.WindowConstants

          +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
        • +
        +
          +
        • + + +

          Fields inherited from interface java.awt.image.ImageObserver

          +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
        • +
        +
      • +
      + +
        +
      • + + +

        Constructor Summary

        + + + + + + + + +
        Constructors 
        Constructor and Description
        MainWindow() 
        +
      • +
      + +
        +
      • + + +

        Method Summary

        +
          +
        • + + +

          Methods inherited from class javax.swing.JFrame

          +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Frame

          +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Window

          +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Container

          +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
        • +
        +
          +
        • + + +

          Methods inherited from class java.awt.Component

          +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
        • +
        +
          +
        • + + +

          Methods inherited from class java.lang.Object

          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
        • +
        +
          +
        • + + +

          Methods inherited from interface java.awt.MenuContainer

          +getFont, postEvent
        • +
        +
      • +
      +
    • +
    +
    +
    +
      +
    • + + + +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          MainWindow

          +
          public MainWindow()
          +
        • +
        +
      • +
      +
    • +
    +
    +
    + + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/ArgumentsGen.html b/doc/javadoc/gui/class-use/ArgumentsGen.html new file mode 100644 index 0000000..f80df70 --- /dev/null +++ b/doc/javadoc/gui/class-use/ArgumentsGen.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.ArgumentsGen + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.ArgumentsGen

    +
    +
    No usage of gui.ArgumentsGen
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/ClientInterfaceGUI.html b/doc/javadoc/gui/class-use/ClientInterfaceGUI.html new file mode 100644 index 0000000..24c0a70 --- /dev/null +++ b/doc/javadoc/gui/class-use/ClientInterfaceGUI.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.ClientInterfaceGUI + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.ClientInterfaceGUI

    +
    +
    No usage of gui.ClientInterfaceGUI
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/ClientP2PGUI.html b/doc/javadoc/gui/class-use/ClientP2PGUI.html new file mode 100644 index 0000000..35c33f0 --- /dev/null +++ b/doc/javadoc/gui/class-use/ClientP2PGUI.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.ClientP2PGUI + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.ClientP2PGUI

    +
    +
    No usage of gui.ClientP2PGUI
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/DownloadFileGUI.html b/doc/javadoc/gui/class-use/DownloadFileGUI.html new file mode 100644 index 0000000..eddcb27 --- /dev/null +++ b/doc/javadoc/gui/class-use/DownloadFileGUI.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.DownloadFileGUI + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.DownloadFileGUI

    +
    +
    No usage of gui.DownloadFileGUI
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/DownloadSelectionGen.html b/doc/javadoc/gui/class-use/DownloadSelectionGen.html new file mode 100644 index 0000000..2e405a8 --- /dev/null +++ b/doc/javadoc/gui/class-use/DownloadSelectionGen.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.DownloadSelectionGen + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.DownloadSelectionGen

    +
    +
    No usage of gui.DownloadSelectionGen
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/ErrorFrame.html b/doc/javadoc/gui/class-use/ErrorFrame.html new file mode 100644 index 0000000..86b6e22 --- /dev/null +++ b/doc/javadoc/gui/class-use/ErrorFrame.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.ErrorFrame + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.ErrorFrame

    +
    +
    No usage of gui.ErrorFrame
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/Gui.html b/doc/javadoc/gui/class-use/Gui.html new file mode 100644 index 0000000..e097fec --- /dev/null +++ b/doc/javadoc/gui/class-use/Gui.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.Gui + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.Gui

    +
    +
    No usage of gui.Gui
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/class-use/MainWindow.html b/doc/javadoc/gui/class-use/MainWindow.html new file mode 100644 index 0000000..9e1b4b0 --- /dev/null +++ b/doc/javadoc/gui/class-use/MainWindow.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class gui.MainWindow + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Uses of Class
    gui.MainWindow

    +
    +
    No usage of gui.MainWindow
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/package-frame.html b/doc/javadoc/gui/package-frame.html new file mode 100644 index 0000000..3586260 --- /dev/null +++ b/doc/javadoc/gui/package-frame.html @@ -0,0 +1,27 @@ + + + + + +gui + + + + + +

    gui

    +
    +

    Classes

    + +
    + + diff --git a/doc/javadoc/gui/package-summary.html b/doc/javadoc/gui/package-summary.html new file mode 100644 index 0000000..48175f9 --- /dev/null +++ b/doc/javadoc/gui/package-summary.html @@ -0,0 +1,178 @@ + + + + + +gui + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Package gui

    +
    +
    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/gui/package-tree.html b/doc/javadoc/gui/package-tree.html new file mode 100644 index 0000000..18725bf --- /dev/null +++ b/doc/javadoc/gui/package-tree.html @@ -0,0 +1,176 @@ + + + + + +gui Class Hierarchy + + + + + + + + +
    + + + + + + + +
    + + +
    +

    Hierarchy For Package gui

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    + +
    + + + + + + + +
    + + + + diff --git a/doc/tools/package-use.html b/doc/javadoc/gui/package-use.html similarity index 51% rename from doc/tools/package-use.html rename to doc/javadoc/gui/package-use.html index c20baa9..b9c9bcd 100644 --- a/doc/tools/package-use.html +++ b/doc/javadoc/gui/package-use.html @@ -1,52 +1,37 @@ - + - -Uses of Package tools - - + +Uses of Package gui + - - - - - - - + -
    - -
    -
    -

    Uses of Package
    tools

    +

    Uses of Package
    gui

    -
    No usage of tools
    -
    - diff --git a/doc/javadoc/help-doc.html b/doc/javadoc/help-doc.html index b7d741c..63bac03 100644 --- a/doc/javadoc/help-doc.html +++ b/doc/javadoc/help-doc.html @@ -1,22 +1,12 @@ - + - + API Help - - + - - - - - - - + -
    - -
    -

    How This API Document Is Organized

    This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
    @@ -101,148 +76,118 @@ $('.navPadding').css('padding-top', $('.fixedNav').css("height"));
    • -

      Overview

      -

      The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

      -
      +

      The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    • -

      Package

      -

      Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain six categories:

      +

      Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

        -
      • Interfaces
      • +
      • Interfaces (italic)
      • Classes
      • Enums
      • Exceptions
      • Errors
      • Annotation Types
      -
    • -
      -

      Class or Interface

      +

      Class/Interface

      Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

        -
      • Class Inheritance Diagram
      • +
      • Class inheritance diagram
      • Direct Subclasses
      • All Known Subinterfaces
      • All Known Implementing Classes
      • -
      • Class or Interface Declaration
      • -
      • Class or Interface Description
      • +
      • Class/interface declaration
      • +
      • Class/interface description
      -
      • Nested Class Summary
      • Field Summary
      • -
      • Property Summary
      • Constructor Summary
      • Method Summary
      -
      • Field Detail
      • -
      • Property Detail
      • Constructor Detail
      • Method Detail

      Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

      -
    • -

      Annotation Type

      Each annotation type has its own separate page with the following sections:

        -
      • Annotation Type Declaration
      • -
      • Annotation Type Description
      • +
      • Annotation Type declaration
      • +
      • Annotation Type description
      • Required Element Summary
      • Optional Element Summary
      • Element Detail
      -
    • -

      Enum

      Each enum has its own separate page with the following sections:

        -
      • Enum Declaration
      • -
      • Enum Description
      • +
      • Enum declaration
      • +
      • Enum description
      • Enum Constant Summary
      • Enum Constant Detail
      -
    • -

      Use

      -

      Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its "Use" page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

      -
      +

      Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    • -

      Tree (Class Hierarchy)

      -

      There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

      +

      There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

      • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
      • -
      • When viewing a particular package, class or interface page, clicking on "Tree" displays the hierarchy for only that package.
      • +
      • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
      -
    • -

      Deprecated API

      The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

      -
    • -

      Index

      -

      The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields, as well as lists of all packages and all classes.

      -
      +

      The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    • -
      -

      All Classes

      -

      The All Classes link shows all classes and interfaces except non-static nested types.

      -
      +

      Prev/Next

      +

      These links take you to the next or previous class, interface, package, or related page.

      +
    • +
    • +

      Frames/No Frames

      +

      These links show and hide the HTML frames. All pages are available with or without frames.

      +
    • +
    • +

      All Classes

      +

      The All Classes link shows all classes and interfaces except non-static nested types.

    • -

      Serialized Form

      Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

      -
    • -

      Constant Field Values

      The Constant Field Values page lists the static final fields and their values.

      -
      -
    • -
    • -
      -

      Search

      -

      You can search for definitions of modules, packages, types, fields, methods and other terms defined in the API, using some or all of the name. "Camel-case" abbreviations are supported: for example, "InpStr" will find "InputStream" and "InputStreamReader".

      -
    -
    -This help file applies to API documentation generated by the standard doclet.
    -
    - diff --git a/doc/javadoc/index-files/index-1.html b/doc/javadoc/index-files/index-1.html index 97ab3ef..37fa59f 100644 --- a/doc/javadoc/index-files/index-1.html +++ b/doc/javadoc/index-files/index-1.html @@ -1,22 +1,12 @@ - + - + A-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    A

    -
    askOpenDataHomeDirectory() - Method in class tools.Directories
    +
    addr - Variable in class serverP2P.ServerManagementTCP.ClientHandler
    +
     
    +
    addr - Variable in class tracker.TrackerManagementTCP.ClientHandler
    +
     
    +
    algoList - Variable in class protocolP2P.HashRequest
    +
     
    +
    ArgumentsGen - Class in gui
    +
     
    +
    ArgumentsGen() - Constructor for class gui.ArgumentsGen
    +
    +
    Creates new form ArgumentsGen
    +
    +
    askOpenDataHomeDirectory(String, Scanner) - Method in class tools.Directories
    Asks the user to choose opening dataHomeDirectory or not.
    +
    assignTask(Long) - Method in class clientP2P.ClientDownloadPart
    +
    +
    Adds offset of files parts to download.
    +
    +
    assignTasks() - Method in class clientP2P.ClientDownload
    +
    +
    Assign tasks randomly to threads.
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-10.html b/doc/javadoc/index-files/index-10.html index 15deac2..bd948ab 100644 --- a/doc/javadoc/index-files/index-10.html +++ b/doc/javadoc/index-files/index-10.html @@ -1,52 +1,37 @@ - + - -M-Index - - + +J-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    M

    +

    J

    -
    main(String[]) - Static method in class clientP2P.ClientP2P
    +
    jButton1 - Variable in class gui.ArgumentsGen
    +
     
    +
    jButton1 - Variable in class gui.DownloadSelectionGen
    +
     
    +
    jButton1ActionPerformed(ActionEvent) - Method in class gui.ArgumentsGen
    +
    +
    Actions when click on connect: creat a clientP2Pgui with the infos from textfields
    +
    +
    jButton1ActionPerformed(ActionEvent) - Method in class gui.DownloadSelectionGen
    +
    +
    Actions to initiate when button "Download" is pressed
    +
    +
    jButton2 - Variable in class gui.DownloadSelectionGen
    +
     
    +
    jButton2ActionPerformed(ActionEvent) - Method in class gui.DownloadSelectionGen
    +
    +
    Actions to initiate when button "Back" is initiate
    +
    +
    jComboBox1 - Variable in class gui.ArgumentsGen
    +
     
    +
    jLabel1 - Variable in class gui.ArgumentsGen
    +
     
    +
    jLabel1 - Variable in class gui.DownloadSelectionGen
    +
     
    +
    jLabel1 - Variable in class gui.ErrorFrame
    +
     
    +
    jLabel2 - Variable in class gui.ArgumentsGen
     
    -
    main(String[]) - Static method in class serverP2P.ServerP2P
    +
    jLabel3 - Variable in class gui.ArgumentsGen
     
    +
    jLabel4 - Variable in class gui.ArgumentsGen
    +
     
    +
    jLabel5 - Variable in class gui.ArgumentsGen
    +
     
    +
    jLabel6 - Variable in class gui.ArgumentsGen
    +
     
    +
    jList1 - Variable in class gui.DownloadSelectionGen
    +
     
    +
    jScrollPane1 - Variable in class gui.DownloadSelectionGen
    +
     
    +
    jTextField1 - Variable in class gui.ArgumentsGen
    +
     
    +
    jTextField1ActionPerformed(ActionEvent) - Method in class gui.ArgumentsGen
    +
     
    +
    jTextField2 - Variable in class gui.ArgumentsGen
    +
     
    +
    jTextField2ActionPerformed(ActionEvent) - Method in class gui.ArgumentsGen
    +
     
    +
    jTextField3 - Variable in class gui.ArgumentsGen
    +
     
    +
    jTextField4 - Variable in class gui.ArgumentsGen
    +
     
    +
    jToggleButton1 - Variable in class gui.ErrorFrame
    +
     
    +
    jToggleButton1ActionPerformed(ActionEvent) - Method in class gui.ErrorFrame
    +
    +
    force exit the program when the button "Close" is pressed
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-11.html b/doc/javadoc/index-files/index-11.html index 1213030..41d1589 100644 --- a/doc/javadoc/index-files/index-11.html +++ b/doc/javadoc/index-files/index-11.html @@ -1,52 +1,37 @@ - + - -N-Index - - + +L-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    N

    +

    L

    -
    NOT_FOUND - protocolP2P.RequestResponseCode
    +
    lastPercentProgress - Variable in class clientP2P.ClientDownload
    +
     
    +
    lastTimeProgress - Variable in class clientP2P.ClientDownload
    +
     
    +
    list - Variable in class clientP2P.ClientInterfaceCLI
    +
     
    +
    listDirectory() - Method in class clientP2P.ClientManagement
    +
    +
    list server’s directory content
    +
    +
    listFilesToDownload - Variable in class gui.DownloadSelectionGen
    +
     
    +
    LoadRequest - Class in protocolP2P
    +
    +
    Representation of payload for load request.
    +
    +
    LoadRequest(String, long, long, HostItem) - Constructor for class protocolP2P.LoadRequest
    +
    +
    Constructor (typically used by the client) with a filename parameter.
    +
    +
    LoadRequest(byte[]) - Constructor for class protocolP2P.LoadRequest
    +
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    +
    +
    localException - package localException
    +
     
    +
    LocalException - Exception in exception
    +
     
    +
    LocalException() - Constructor for exception exception.LocalException
    +
     
    +
    lock - Variable in class serverP2P.RatioWatcher
    +
     
    +
    logDir - Variable in class clientP2P.ClientP2P
    +
     
    +
    logDir - Variable in class gui.ClientP2PGUI
    +
     
    +
    logFile - Variable in class tools.Logger
     
    -
    NotFound - Exception in remoteException
    +
    logger - Variable in class clientP2P.ClientDownload
     
    -
    NotFound() - Constructor for exception remoteException.NotFound
    +
    logger - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    logger - Variable in class clientP2P.ClientInterface
    +
     
    +
    logger - Variable in class clientP2P.ClientManagement
    +
     
    +
    logger - Variable in class gui.DownloadFileGUI
    +
     
    +
    logger - Variable in class gui.DownloadSelectionGen
    +
     
    +
    logger - Variable in class serverP2P.FileWatcher
    +
     
    +
    logger - Variable in class serverP2P.RatioWatcher
    +
     
    +
    logger - Variable in class serverP2P.ServerManagement
    +
     
    +
    logger - Variable in class serverP2P.ServerP2P
    +
     
    +
    Logger - Class in tools
    +
    +
    Helper to log.
    +
    +
    Logger(String, boolean) - Constructor for class tools.Logger
    +
    +
    Constructor with logFile.
    +
    +
    logger - Variable in class tracker.Tracker
    +
     
    +
    logger - Variable in class tracker.TrackerManagement
    +
     
    +
    loggerC - Variable in class gui.ClientInterfaceGUI
    +
    +
    Constructor with clientManagement, logger and scanner.
    +
    +
    loggerClient - Variable in class clientP2P.ClientP2P
    +
     
    +
    loggerClient - Variable in class gui.ClientP2PGUI
    +
     
    +
    loggerServer - Variable in class clientP2P.ClientP2P
    +
     
    +
    loggerServer - Variable in class gui.ClientP2PGUI
    +
     
    +
    LogLevel - Enum in tools
    +
    +
    LogLevel Enum.
    +
    +
    LogLevel() - Constructor for enum tools.LogLevel
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-12.html b/doc/javadoc/index-files/index-12.html index dcca901..a9fb0a4 100644 --- a/doc/javadoc/index-files/index-12.html +++ b/doc/javadoc/index-files/index-12.html @@ -1,52 +1,37 @@ - + - -P-Index - - + +M-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    P

    +

    M

    -
    Payload - Class in protocolP2P
    +
    main(String[]) - Static method in class clientP2P.ClientP2P
    -
    Representation of payload.
    +
    Main program entry point. + 1rst parameter is optionnal, and is used to + define port used by the server module to listen.
    -
    Payload(RequestResponseCode) - Constructor for class protocolP2P.Payload
    +
    main(String[]) - Static method in class gui.Gui
    +
     
    +
    main(String[]) - Static method in class serverP2P.ServerP2P
    -
    Consructor used to create Payload with a payload size of zero using a RRCode.
    +
    Main program entry point + first parameter is port number and is mandatory + to test, run with: java serverP2P.ServerP2P
    -
    PROTOCOL_ERROR - protocolP2P.RequestResponseCode
    -
     
    -
    ProtocolError - Exception in exception
    -
     
    -
    ProtocolError() - Constructor for exception exception.ProtocolError
    -
     
    -
    protocolP2P - package protocolP2P
    -
     
    -
    ProtocolP2PDatagram - Class in protocolP2P
    +
    main(String[]) - Static method in class tracker.Tracker
    -
    Representation of datagram.
    +
    Main program entry point + first parameter is port number and is mandatory + to test, run with: java serverP2P.ServerP2P
    -
    ProtocolP2PDatagram(Payload) - Constructor for class protocolP2P.ProtocolP2PDatagram
    +
    MainWindow - Class in gui
    -
    Constructor with payload parameter (typically used when sending datagram).
    +
    Class to download file
    -
    ProtocolRemoteError - Exception in remoteException
    +
    MainWindow() - Constructor for class gui.MainWindow
    +
     
    +
    manager - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    MAX_PARTIAL_SIZE - Static variable in class clientP2P.ClientDownload
    +
     
    +
    MAX_PARTIAL_SIZE - Static variable in class clientP2P.ClientDownloadPart
    +
     
    +
    MAX_SIZE_PARTIAL_CONTENT_POSITION - Static variable in class protocolP2P.LoadRequest
     
    -
    ProtocolRemoteError() - Constructor for exception remoteException.ProtocolRemoteError
    +
    maxSizePartialContent - Variable in class protocolP2P.LoadRequest
    +
     
    +
    message - Variable in class gui.ErrorFrame
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-13.html b/doc/javadoc/index-files/index-13.html index df20b58..c57edcb 100644 --- a/doc/javadoc/index-files/index-13.html +++ b/doc/javadoc/index-files/index-13.html @@ -1,52 +1,37 @@ - + - -R-Index - - + +N-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    R

    +

    N

    -
    readInt(byte[], int) - Static method in class tools.BytesArrayTools
    -
    -
    Read int from a bytearray
    -
    -
    readLong(byte[], int) - Static method in class tools.BytesArrayTools
    -
    -
    Read long from a bytearray
    -
    -
    receive(DatagramSocket) - Static method in class protocolP2P.ProtocolP2PDatagram
    -
    -
    Receive datagram on socket
    -
    -
    remoteException - package remoteException
    +
    name - Variable in enum protocolP2P.HashAlgorithm
    +
     
    +
    noTask - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    NotATracker - Exception in remoteException
     
    -
    REQUEST - protocolP2P.CodeType
    +
    NotATracker() - Constructor for exception remoteException.NotATracker
     
    -
    RequestResponseCode - Enum in protocolP2P
    -
    -
    Request/Response code enum.
    -
    -
    RESPONSE - protocolP2P.CodeType
    +
    NotFound - Exception in remoteException
    +
     
    +
    NotFound() - Constructor for exception remoteException.NotFound
     
    -
    run() - Method in class clientP2P.ClientManagementUDP
    -
    -
    Implementation of Runnable
    -
    -
    run() - Method in class serverP2P.ServerManagementUDP
    -
    -
    Implementation of runnable.
    -
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-14.html b/doc/javadoc/index-files/index-14.html index 2720fb2..e5eb7f8 100644 --- a/doc/javadoc/index-files/index-14.html +++ b/doc/javadoc/index-files/index-14.html @@ -1,52 +1,37 @@ - + - -S-Index - - + +O-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    S

    +

    O

    -
    send(DatagramSocket, String, int) - Method in class protocolP2P.ProtocolP2PDatagram
    -
    -
    Send datagram on socket (from client)
    -
    -
    send(DatagramSocket, ProtocolP2PDatagram) - Method in class protocolP2P.ProtocolP2PDatagram
    -
    -
    Send datagram on socket (from server, as a response)
    -
    -
    ServerManagementUDP - Class in serverP2P
    -
    -
    Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for UDP.
    -
    -
    ServerManagementUDP(String, int) - Constructor for class serverP2P.ServerManagementUDP
    -
    -
    Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
    -
    -
    serverP2P - package serverP2P
    +
    offset - Variable in class protocolP2P.Denied
    +
     
    +
    offset - Variable in class protocolP2P.FilePart
    +
     
    +
    offset - Variable in class protocolP2P.LoadRequest
    +
     
    +
    OFFSET_POSITION - Static variable in class protocolP2P.Denied
     
    -
    ServerP2P - Class in serverP2P
    +
    OFFSET_POSITION - Static variable in class protocolP2P.FilePart
     
    -
    ServerP2P() - Constructor for class serverP2P.ServerP2P
    +
    OFFSET_POSITION - Static variable in class protocolP2P.LoadRequest
     
    -
    SizeError - Exception in exception
    +
    offsetsPending - Variable in class clientP2P.ClientDownload
    +
     
    +
    offsetsToAsk - Variable in class clientP2P.ClientDownload
    +
     
    +
    openDataHomeDirectory(String) - Method in class tools.Directories
    -
    Used on reception side when size as set in datagram is too big, and we cant store this in a int/long as usual.
    +
    Opens dataHomeDirectory if supported.
    -
    SizeError() - Constructor for exception exception.SizeError
    +
    os - Variable in class tools.Directories
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-15.html b/doc/javadoc/index-files/index-15.html index f1c49bc..7f89804 100644 --- a/doc/javadoc/index-files/index-15.html +++ b/doc/javadoc/index-files/index-15.html @@ -1,52 +1,37 @@ - + - -T-Index - - + +P-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    T

    +

    P

    -
    tools - package tools
    +
    partialContent - Variable in class protocolP2P.FilePart
    +
     
    +
    partsDir - Variable in class clientP2P.ClientP2P
    +
     
    +
    partsDir - Variable in class gui.ClientP2PGUI
    +
     
    +
    partsSubdir - Variable in class clientP2P.ClientDownload
    +
     
    +
    partsSubdir - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    partsSubdir - Variable in class clientP2P.ClientManagement
    +
     
    +
    Payload - Class in protocolP2P
    +
    +
    Representation of payload.
    +
    +
    Payload(RequestResponseCode) - Constructor for class protocolP2P.Payload
    +
    +
    Consructor used to create Payload with a payload size of zero using a RRCode.
    +
    +
    Payload(byte[]) - Constructor for class protocolP2P.Payload
    +
    +
    Constructor used to create a Payload (when no more specific subclasses exists) using packet as parameter.
    +
    +
    payload - Variable in class protocolP2P.ProtocolP2PPacket
    +
     
    +
    PAYLOAD_SIZE_POSITION - Static variable in class protocolP2P.Payload
    +
     
    +
    PAYLOAD_START_POSITION - Static variable in class protocolP2P.Payload
    +
     
    +
    pendingTasks - Variable in class clientP2P.ClientDownloadPart
     
    -
    TransmissionError - Exception in exception
    +
    port - Variable in class tools.HostItem
     
    -
    TransmissionError() - Constructor for exception exception.TransmissionError
    +
    PORT_START_POSITION - Static variable in class protocolP2P.RatioResponse
     
    +
    portMax - Variable in class tools.PortRange
    +
     
    +
    portMin - Variable in class tools.PortRange
    +
     
    +
    PortRange - Class in tools
    +
    +
    Test ports.
    +
    +
    PortRange(int, int, int, String) - Constructor for class tools.PortRange
    +
    +
    Port range constructor
    +
    +
    portServer - Variable in class gui.ClientP2PGUI
    +
     
    +
    portTracker - Variable in class gui.ClientP2PGUI
    +
     
    +
    printProgression() - Method in class clientP2P.ClientDownload
    +
    +
    Print progression of the download.
    +
    +
    printUsage(ServerPortRange, TrackerPortRange) - Static method in class clientP2P.ClientP2P
    +
    +
    Print cli usage
    +
    +
    projectName - Variable in class tools.Directories
    +
     
    +
    PROTOCOL_VERSION - Static variable in class protocolP2P.ProtocolP2PPacket
    +
     
    +
    ProtocolError - Exception in localException
    +
     
    +
    ProtocolError() - Constructor for exception localException.ProtocolError
    +
     
    +
    protocolP2P - package protocolP2P
    +
     
    +
    protocolP2P - Variable in class gui.ClientP2PGUI
    +
     
    +
    ProtocolP2PPacket<T extends Payload> - Class in protocolP2P
    +
    +
    Representation of packet.
    +
    +
    ProtocolP2PPacket(T) - Constructor for class protocolP2P.ProtocolP2PPacket
    +
    +
    Constructor with payload parameter (typically used when sending Packet).
    +
    +
    ProtocolP2PPacket(Object) - Constructor for class protocolP2P.ProtocolP2PPacket
    +
    +
    Receive a request, subclasses must overwrite this constructor.
    +
    +
    ProtocolP2PPacket(byte[]) - Constructor for class protocolP2P.ProtocolP2PPacket
    +
    +
    Construct a packet from byte[], subclasses must overwrite this constructor.
    +
    +
    ProtocolP2PPacketTCP<T extends Payload> - Class in protocolP2P
    +
    +
    Representation of packet.
    +
    +
    ProtocolP2PPacketTCP(T) - Constructor for class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Constructor with payload parameter (typically used when sending packet).
    +
    +
    ProtocolP2PPacketTCP(Object) - Constructor for class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Receive Request (typically used from server).
    +
    +
    ProtocolP2PPacketTCP(byte[]) - Constructor for class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Private constructor with packet as byte[] parameter (typically used when receiving Packet response).
    +
    +
    ProtocolP2PPacketUDP<T extends Payload> - Class in protocolP2P
    +
    +
    Representation of packet.
    +
    +
    ProtocolP2PPacketUDP(T) - Constructor for class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Constructor with payload parameter (typically used when sending packet).
    +
    +
    ProtocolP2PPacketUDP(Object) - Constructor for class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Receive Request (typically used from server).
    +
    +
    ProtocolP2PPacketUDP(byte[]) - Constructor for class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Private constructor with packet as byte[] parameter (typically used when receiving Packet response).
    +
    +
    ProtocolRemoteError - Exception in remoteException
    +
     
    +
    ProtocolRemoteError() - Constructor for exception remoteException.ProtocolRemoteError
    +
     
    +
    punisher - Variable in class serverP2P.ServerManagement
    +
     
    +
    punishmentFactor - Static variable in class serverP2P.RatioWatcher
    +
     
    +
    purgeList() - Method in class clientP2P.ClientDownload
    +
    +
    Removes servers not owning the correct file to download from list.
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-16.html b/doc/javadoc/index-files/index-16.html index 0733ced..ae7fa51 100644 --- a/doc/javadoc/index-files/index-16.html +++ b/doc/javadoc/index-files/index-16.html @@ -1,52 +1,37 @@ - + - -V-Index - - + +R-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    V

    +

    R

    -
    valueOf(String) - Static method in enum protocolP2P.CodeType
    +
    ratioDown - Variable in class tracker.TrackerManagement
    +
     
    +
    RatioRequest - Class in protocolP2P
    +
    +
    Representation of payload for ratio request.
    +
    +
    RatioRequest(HostItem) - Constructor for class protocolP2P.RatioRequest
    +
    +
    Constructor with hostItem (typically used by client/server)
    +
    +
    RatioRequest(byte[]) - Constructor for class protocolP2P.RatioRequest
    +
    +
    Constructor (typically used by tracker) with a byte[] parameter containing the Packet received.
    +
    +
    RatioResponse - Class in protocolP2P
    +
    +
    Representation of payload for ratio response.
    +
    +
    RatioResponse(HostItem, long, long) - Constructor for class protocolP2P.RatioResponse
    +
    +
    Constructor with hostItem (typically used by tracker)
    +
    +
    RatioResponse(byte[]) - Constructor for class protocolP2P.RatioResponse
    +
    +
    Constructor (typically used by client/server) with a byte[] parameter containing the Packet received.
    +
    +
    ratioUp - Variable in class tracker.TrackerManagement
    +
     
    +
    ratioUpdater - Variable in class clientP2P.ClientDownload
    +
     
    +
    RatioWatcher - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about ratios
    +
    +
    RatioWatcher(Logger, long, HostItem) - Constructor for class serverP2P.RatioWatcher
    +
    +
    Constructor
    +
    +
    ratioWatcher - Variable in class serverP2P.ServerManagement
    +
     
    +
    RatioWatcherTCP - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about file list (TCP impl.)
    +
    +
    RatioWatcherTCP(Logger, long, HostItem) - Constructor for class serverP2P.RatioWatcherTCP
    +
    +
    Constructor
    +
    +
    RatioWatcherUDP - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about file list (UDP impl.)
    +
    +
    RatioWatcherUDP(Logger, long, HostItem) - Constructor for class serverP2P.RatioWatcherUDP
    +
    +
    Constructor
    +
    +
    readByteArray(byte[], int, int) - Static method in class tools.BytesArrayTools
    +
    +
    Read byte Array to byte Array
    +
    +
    readInt(byte[], int) - Static method in class tools.BytesArrayTools
    +
    +
    Read int from a bytearray
    +
    +
    readInt16Bits(byte[], int) - Static method in class tools.BytesArrayTools
    +
    +
    Read int from a bytearray of 16 bits
    +
    +
    readLock - Variable in class tracker.TrackerManagement
    +
     
    +
    readLong(byte[], int) - Static method in class tools.BytesArrayTools
    +
    +
    Read long from a bytearray
    +
    +
    readString(byte[], int, int) - Static method in class tools.BytesArrayTools
    +
    +
    Read string from byte array
    +
    +
    readString(byte[], int, String) - Static method in class tools.BytesArrayTools
    +
    +
    Read string from byte array
    +
    +
    readStringArray(byte[], int, int, String) - Static method in class tools.BytesArrayTools
    +
    +
    Read string array from byte array starting at start with size parameter.
    +
    +
    reassembleFile() - Method in class clientP2P.ClientDownload
    -
    Returns the enum constant of this type with the specified name.
    +
    Reassemble file from file parts.
    -
    valueOf(String) - Static method in enum protocolP2P.RequestResponseCode
    +
    receivedBytesCount - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    receiveResponse() - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Receive a response
    +
    +
    receiveResponse() - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Receive response (typically used by client).
    +
    +
    receiveResponse() - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Receive response (typically used by client).
    +
    +
    Register - Class in protocolP2P
    -
    Returns the enum constant of this type with the specified name.
    +
    Representation of payload for unregister.
    -
    values() - Static method in enum protocolP2P.CodeType
    +
    Register(HostItem) - Constructor for class protocolP2P.Register
    -
    Returns an array containing the constants of this enum type, in -the order they are declared.
    +
    Constructor with hostItem (typically used by client)
    -
    values() - Static method in enum protocolP2P.RequestResponseCode
    +
    Register(byte[]) - Constructor for class protocolP2P.Register
    -
    Returns an array containing the constants of this enum type, in -the order they are declared.
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    -
    VERSION_ERROR - protocolP2P.RequestResponseCode
    +
    registerTracker() - Method in class serverP2P.FileWatcher
    +
    +
    Register server on tracker
    +
    +
    registerTracker() - Method in class serverP2P.FileWatcherTCP
    +
    +
    Register server on tracker
    +
    +
    registerTracker() - Method in class serverP2P.FileWatcherUDP
    +
    +
    Register server on tracker
    +
    +
    remoteException - package remoteException
     
    -
    VersionError - Exception in exception
    +
    RemoteException - Exception in exception
     
    -
    VersionError() - Constructor for exception exception.VersionError
    +
    RemoteException() - Constructor for exception exception.RemoteException
     
    -
    VersionRemoteError - Exception in remoteException
    +
    remoteHost - Variable in class protocolP2P.ProtocolP2PPacketUDP
     
    -
    VersionRemoteError() - Constructor for exception remoteException.VersionRemoteError
    +
    reqPart(Long) - Method in class clientP2P.ClientDownloadPart
    +
    +
    Send a request for a specific offset.
    +
    +
    requestResponseCode - Variable in class protocolP2P.Payload
    +
     
    +
    RequestResponseCode - Enum in protocolP2P
    +
    +
    Request/Response code enum.
    +
    +
    RequestResponseCode(CodeType, byte) - Constructor for enum protocolP2P.RequestResponseCode
    +
    +
    Private constructor
    +
    +
    requestSocket - Variable in class protocolP2P.ProtocolP2PPacketTCP
    +
     
    +
    requestSocket - Variable in class protocolP2P.ProtocolP2PPacketUDP
     
    +
    responseSocket - Variable in class protocolP2P.ProtocolP2PPacketTCP
    +
     
    +
    responseSocket - Variable in class protocolP2P.ProtocolP2PPacketUDP
    +
     
    +
    responseSocketAddress - Variable in class protocolP2P.ProtocolP2PPacketUDP
    +
     
    +
    RRCODE_POSITION - Static variable in enum protocolP2P.RequestResponseCode
    +
     
    +
    run() - Method in class clientP2P.ClientDownload
    +
    +
    Runnable implementation
    +
    +
    run() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Runnable implementation
    +
    +
    run() - Method in class clientP2P.ClientInterfaceCLI
    +
    +
    Implementation of Runnable
    +
    +
    run() - Method in class gui.ClientInterfaceGUI
    +
    +
    Implementation of Runnable
    +
    +
    run() - Method in class serverP2P.FileWatcher
    +
    +
    Runnable implementation
    +
    +
    run() - Method in class serverP2P.RatioWatcher
    +
    +
    Runnable implementation
    +
    +
    run() - Method in class serverP2P.ServerManagementTCP.ClientHandler
    +
    +
    Implementation of runnable.
    +
    +
    run() - Method in class serverP2P.ServerManagementTCP
    +
    +
    Implementation of runnable.
    +
    +
    run() - Method in class serverP2P.ServerManagementUDP
    +
    +
    Implementation of runnable.
    +
    +
    run() - Method in class tracker.TrackerManagementTCP.ClientHandler
    +
    +
    Implementation of runnable.
    +
    +
    run() - Method in class tracker.TrackerManagementTCP
    +
    +
    Implementation of runnable.
    +
    +
    run() - Method in class tracker.TrackerManagementUDP
    +
    +
    Implementation of runnable.
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-17.html b/doc/javadoc/index-files/index-17.html index a73e925..f6a12df 100644 --- a/doc/javadoc/index-files/index-17.html +++ b/doc/javadoc/index-files/index-17.html @@ -1,52 +1,37 @@ - + - -W-Index - - + +S-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    W

    +

    S

    -
    write(byte[], int, int) - Static method in class tools.BytesArrayTools
    +
    scanner - Variable in class clientP2P.ClientInterfaceCLI
    +
     
    +
    scanner - Variable in class clientP2P.ClientP2P
    +
     
    +
    searchByExtention(String[], String) - Method in class tools.SearchFile
    +
    +
    search correspondance of a String in a the end of String in an array.
    +
    +
    searchByName(String[], String) - Method in class tools.SearchFile
    +
    +
    search correspondance of a String in a String array.
    +
    +
    SearchFile - Class in tools
    +
    +
    Helper to search for files.
    +
    +
    SearchFile() - Constructor for class tools.SearchFile
    +
     
    +
    send(Socket) - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Send a Packet.
    +
    +
    send(DatagramSocket) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Send a Packet.
    +
    +
    send(DatagramSocket, SocketAddress) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Send a Packet.
    +
    +
    sendEmptyDirectory(T) - Method in class tools.ServeErrors
    +
    +
    Send an empty directory message.
    +
    +
    sendEmptyFile(T) - Method in class tools.ServeErrors
    +
    +
    Send an empty file message.
    +
    +
    sendHashResponse(T) - Method in class serverP2P.ServerManagement
    +
    +
    Send hash response to hash request
    +
    +
    sendInternalError(T) - Method in class tools.ServeErrors
    +
    +
    Send an internal error message.
    +
    +
    sendListResponse(T) - Method in class serverP2P.ServerManagement
    +
    +
    Send response to list request
    +
    +
    sendLoadResponse(T) - Method in class serverP2P.ServerManagement
    +
    +
    Send response to load request
    +
    +
    sendNotATracker(T) - Method in class tools.ServeErrors
    +
    +
    Send a NotATracker error message.
    +
    +
    sendNotFound(T) - Method in class tools.ServeErrors
    +
    +
    Send a not found message.
    +
    +
    sendRatioUpdate() - Method in class clientP2P.ClientDownload
    +
    +
    Send Ratio update to the tracker
    +
    +
    sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Send a request
    +
    +
    sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Send a Request throught socket.
    +
    +
    sendRequest(Object) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Send a Request throught socket.
    +
    +
    sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Send a response
    +
    +
    sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Send a Response to a Request (typically used from server).
    +
    +
    sendResponse(U) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Send a Response to a Request (typically used from server).
    +
    +
    sendSizeResponse(T) - Method in class serverP2P.ServerManagement
    +
    +
    Send response to size request
    +
    +
    sendUnknownHost(T) - Method in class tools.ServeErrors
    +
    +
    Send an unknown host message.
    +
    +
    sendUnregisterRequest() - Method in class serverP2P.ServerManagement
    +
    +
    Send unregister request to tracker
    +
    +
    serialVersionUID - Static variable in exception exception.LocalException
    +
     
    +
    serialVersionUID - Static variable in exception exception.RemoteException
    +
     
    +
    serialVersionUID - Static variable in class gui.ArgumentsGen
    +
     
    +
    serialVersionUID - Static variable in class gui.DownloadFileGUI
    +
     
    +
    serialVersionUID - Static variable in class gui.DownloadSelectionGen
    +
     
    +
    serialVersionUID - Static variable in class gui.ErrorFrame
    +
     
    +
    serialVersionUID - Static variable in class gui.MainWindow
    +
     
    +
    serialVersionUID - Static variable in exception localException.InternalError
    +
     
    +
    serialVersionUID - Static variable in exception localException.ProtocolError
    +
     
    +
    serialVersionUID - Static variable in exception localException.SizeError
    +
     
    +
    serialVersionUID - Static variable in exception localException.SocketClosed
    +
     
    +
    serialVersionUID - Static variable in exception localException.TransmissionError
    +
     
    +
    serialVersionUID - Static variable in exception localException.VersionError
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.EmptyDirectory
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.EmptyFile
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.InternalRemoteError
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.NotATracker
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.NotFound
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.ProtocolRemoteError
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.UnknownHost
    +
     
    +
    serialVersionUID - Static variable in exception remoteException.VersionRemoteError
    +
     
    +
    ServeErrors - Class in tools
    +
     
    +
    ServeErrors() - Constructor for class tools.ServeErrors
    +
     
    +
    server - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    server - Variable in class clientP2P.ClientP2P
    +
     
    +
    server - Variable in class gui.ClientP2PGUI
    +
     
    +
    server - Variable in class protocolP2P.UpdateRatio
    +
     
    +
    server - Variable in class serverP2P.FileWatcher
    +
     
    +
    server - Variable in class serverP2P.ServerManagement
    +
     
    +
    server - Variable in class serverP2P.ServerP2P
    +
     
    +
    SERVER_PORT_START_POSITION - Static variable in class protocolP2P.UpdateRatio
    +
     
    +
    ServerManagement - Class in serverP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol.
    +
    +
    ServerManagement(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagement
    +
    +
    Constructor
    +
    +
    ServerManagementTCP - Class in serverP2P
    -
    Write int in a bytearray
    +
    Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for TCP.
    -
    write(byte[], int, long) - Static method in class tools.BytesArrayTools
    +
    ServerManagementTCP(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagementTCP
    -
    Write long in a bytearray
    +
    Constructor for TCP implementation, with baseDirectory and TCPPort parameters.
    +
    ServerManagementTCP.ClientHandler - Class in serverP2P
    +
    +
    Private runnable class allowing to serve one client.
    +
    +
    ServerManagementUDP - Class in serverP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT VERSION 1.0 protocol for UDP.
    +
    +
    ServerManagementUDP(String, HostItem, HostItem, Logger) - Constructor for class serverP2P.ServerManagementUDP
    +
    +
    Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
    +
    +
    serverP2P - package serverP2P
    +
     
    +
    ServerP2P - Class in serverP2P
    +
    +
    Server only implementation + First argument of main method is port listened by the server, and is mandatory.
    +
    +
    ServerP2P(String, int, String, int, boolean) - Constructor for class serverP2P.ServerP2P
    +
    +
    Constructor with portServerstr containing a port number.
    +
    +
    ServerPortRange - Class in tools
    +
     
    +
    ServerPortRange() - Constructor for class tools.ServerPortRange
    +
    +
    Constructor
    +
    +
    setCheckSum(byte[]) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Used to set checksum into packet
    +
    +
    setDataHomeDirectory() - Method in class tools.Directories
    +
    +
    Setter for dataHomeDirectory.
    +
    +
    setFilename(byte[]) - Method in class protocolP2P.FilePart
    +
    +
    Write from Packet into filename.
    +
    +
    setOffset(byte[]) - Method in class protocolP2P.FilePart
    +
    +
    Write from Packet into offset.
    +
    +
    setPartialContent(byte[]) - Method in class protocolP2P.FilePart
    +
    +
    Write from Packet into partialContent.
    +
    +
    setPayloadSize(int, byte[]) - Static method in class protocolP2P.Payload
    +
    +
    Set payload’s size in a Packet.
    +
    +
    setSize() - Method in class clientP2P.ClientDownload
    +
    +
    Set size of file to download.
    +
    +
    setStop() - Method in class clientP2P.ClientDownload
    +
    +
    Asks thread to stop
    +
    +
    setStop() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Asks to stop thread.
    +
    +
    setStop() - Method in class serverP2P.FileWatcher
    +
    +
    Ask the thread to stop
    +
    +
    setStop() - Method in class serverP2P.RatioWatcher
    +
    +
    Ask the thread to stop
    +
    +
    setStop() - Method in class serverP2P.ServerManagement
    +
    +
    Stop the thread
    +
    +
    setStop() - Method in class tracker.TrackerManagement
    +
    +
    Stop the thread
    +
    +
    setThread(Thread) - Method in class serverP2P.FileWatcher
    +
    +
    Set thread
    +
    +
    setThread(Thread) - Method in class serverP2P.RatioWatcher
    +
    +
    Set thread
    +
    +
    sha512 - Variable in class serverP2P.FileWatcher
    +
     
    +
    size - Variable in class clientP2P.ClientDownload
    +
     
    +
    SizeError - Exception in localException
    +
    +
    Used on reception side when size as set in Packet is too big, and we cant store this in a int/long as usual.
    +
    +
    SizeError() - Constructor for exception localException.SizeError
    +
     
    +
    SizeRequest - Class in protocolP2P
    +
    +
    Representation of payload for load request.
    +
    +
    SizeRequest(String) - Constructor for class protocolP2P.SizeRequest
    +
    +
    Constructor (typically used by the client) with a filename parameter.
    +
    +
    SizeRequest(byte[]) - Constructor for class protocolP2P.SizeRequest
    +
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    +
    +
    SizeResponse - Class in protocolP2P
    +
    +
    Representation of payload for size response.
    +
    +
    SizeResponse(String, long) - Constructor for class protocolP2P.SizeResponse
    +
    +
    Constructor (typically used by server) with informations about file part to send as parameters.
    +
    +
    SizeResponse(byte[]) - Constructor for class protocolP2P.SizeResponse
    +
    +
    Constructor (typically used by client) with Packet received as parameter.
    +
    +
    smtcp - Variable in class gui.ClientInterfaceGUI
    +
     
    +
    smtcp - Variable in class gui.DownloadFileGUI
    +
     
    +
    smtcp - Variable in class gui.DownloadSelectionGen
    +
     
    +
    smudp - Variable in class gui.ClientInterfaceGUI
    +
     
    +
    smudp - Variable in class gui.DownloadFileGUI
    +
     
    +
    smudp - Variable in class gui.DownloadSelectionGen
    +
     
    +
    socket - Variable in class clientP2P.ClientDownloadPartTCP
    +
     
    +
    socket - Variable in class clientP2P.ClientDownloadPartUDP
    +
     
    +
    socket - Variable in class serverP2P.ServerManagementTCP
    +
     
    +
    socket - Variable in class serverP2P.ServerManagementUDP
    +
     
    +
    socket - Variable in class tracker.TrackerManagementTCP
    +
     
    +
    socket - Variable in class tracker.TrackerManagementUDP
    +
     
    +
    SocketClosed - Exception in localException
    +
     
    +
    SocketClosed() - Constructor for exception localException.SocketClosed
    +
     
    +
    sockList - Variable in class clientP2P.ClientDownload
    +
     
    +
    stop - Variable in class clientP2P.ClientDownload
    +
     
    +
    stop - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    stop - Variable in class serverP2P.FileWatcher
    +
     
    +
    stop - Variable in class serverP2P.RatioWatcher
    +
     
    +
    stop - Variable in class serverP2P.ServerManagement
    +
     
    +
    stop - Variable in class tracker.TrackerManagement
    +
     
    +
    stopTasks() - Method in class clientP2P.ClientDownload
    +
    +
    Stop threads
    +
    +
    subdir - Static variable in class serverP2P.ServerP2P
    +
     
    +
    success - Variable in class clientP2P.ClientDownload
    +
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-18.html b/doc/javadoc/index-files/index-18.html new file mode 100644 index 0000000..aed7833 --- /dev/null +++ b/doc/javadoc/index-files/index-18.html @@ -0,0 +1,320 @@ + + + + + +T-Index + + + + + + + + +
    + + + + + + + +
    + + +
    A B C D E F G H I J L M N O P R S T U V W  + + +

    T

    +
    +
    tasksDone - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    tasksListsLock - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    tcpSocket - Variable in class tools.HostItem
    +
     
    +
    thread - Variable in class serverP2P.FileWatcher
    +
     
    +
    thread - Variable in class serverP2P.RatioWatcher
    +
     
    +
    time - Variable in class serverP2P.FileWatcher
    +
     
    +
    time - Variable in class serverP2P.RatioWatcher
    +
     
    +
    toDoTasks - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    tools - package tools
    +
     
    +
    toPacket() - Method in class protocolP2P.Denied
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.DiscoverRequest
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.DiscoverResponse
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.FileList
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.FilePart
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.HashRequest
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.HashResponse
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.LoadRequest
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.Payload
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Returns a byte[] containing full packet (typically used when sending packet).
    +
    +
    toPacket() - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Returns a byte[] containing full packet (typically used when sending packet).
    +
    +
    toPacket() - Method in class protocolP2P.RatioRequest
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.RatioResponse
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.Register
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.SizeRequest
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.SizeResponse
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.Unregister
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toPacket() - Method in class protocolP2P.UpdateRatio
    +
    +
    Returns a byte[] containing Packet with padding.
    +
    +
    toString() - Method in class tools.HostItem
    +
    +
    To string
    +
    +
    toString() - Method in class tools.PortRange
    +
    +
    To String
    +
    +
    TOTAL_DOWN_START_POSITION - Static variable in class protocolP2P.RatioResponse
    +
     
    +
    TOTAL_SIZE_POSITION - Static variable in class protocolP2P.SizeResponse
    +
     
    +
    TOTAL_UP_START_POSITION - Static variable in class protocolP2P.RatioResponse
    +
     
    +
    totalDown - Variable in class protocolP2P.RatioResponse
    +
     
    +
    totalSize - Variable in class protocolP2P.SizeResponse
    +
     
    +
    totalUp - Variable in class protocolP2P.RatioResponse
    +
     
    +
    tracker - package tracker
    +
     
    +
    tracker - Variable in class clientP2P.ClientDownload
    +
     
    +
    tracker - Variable in class clientP2P.ClientManagement
    +
     
    +
    tracker - Variable in class clientP2P.ClientP2P
    +
     
    +
    tracker - Variable in class gui.ClientP2PGUI
    +
     
    +
    tracker - Variable in class serverP2P.FileWatcher
    +
     
    +
    tracker - Variable in class serverP2P.RatioWatcher
    +
     
    +
    tracker - Variable in class serverP2P.ServerManagement
    +
     
    +
    tracker - Variable in class serverP2P.ServerP2P
    +
     
    +
    Tracker - Class in tracker
    +
    +
    Tracker implementation + First argument of main method is port listened by the tracker, and is mandatory.
    +
    +
    Tracker(String, int, boolean) - Constructor for class tracker.Tracker
    +
    +
    Constructor with portStr containing a port number.
    +
    +
    tracker - Variable in class tracker.Tracker
    +
     
    +
    tracker - Variable in class tracker.TrackerManagement
    +
     
    +
    TrackerManagement - Class in tracker
    +
    +
    Tracker management implementation
    +
    +
    TrackerManagement(HostItem, Logger) - Constructor for class tracker.TrackerManagement
    +
    +
    Constructor
    +
    +
    TrackerManagementTCP - Class in tracker
    +
    +
    Tracker management implementation with tcp
    +
    +
    TrackerManagementTCP(HostItem, Logger) - Constructor for class tracker.TrackerManagementTCP
    +
    +
    Constructor with port and logger.
    +
    +
    TrackerManagementTCP.ClientHandler - Class in tracker
    +
    +
    Private runnable class allowing to serve one client.
    +
    +
    TrackerManagementUDP - Class in tracker
    +
    +
    Tracker management implementation with udp
    +
    +
    TrackerManagementUDP(HostItem, Logger) - Constructor for class tracker.TrackerManagementUDP
    +
    +
    Constructor with port and logger.
    +
    +
    TrackerPortRange - Class in tools
    +
     
    +
    TrackerPortRange() - Constructor for class tools.TrackerPortRange
    +
    +
    Constructor
    +
    +
    TransmissionError - Exception in localException
    +
     
    +
    TransmissionError() - Constructor for exception localException.TransmissionError
    +
     
    +
    trigger() - Method in class serverP2P.FileWatcher
    +
    +
    Allow a manual check
    +
    +
    tryGetTCPSocket() - Method in class tools.HostItem
    +
    +
    Get TCP Socket.
    +
    +
    tryGetUDPSocket() - Method in class tools.HostItem
    +
    +
    Get UDP Socket.
    +
    +
    type - Variable in class tools.PortRange
    +
     
    +
    +A B C D E F G H I J L M N O P R S T U V W 
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/index-files/index-19.html b/doc/javadoc/index-files/index-19.html new file mode 100644 index 0000000..31f917e --- /dev/null +++ b/doc/javadoc/index-files/index-19.html @@ -0,0 +1,165 @@ + + + + + +U-Index + + + + + + + + +
    + + + + + + + +
    + + +
    A B C D E F G H I J L M N O P R S T U V W  + + +

    U

    +
    +
    udpSocket - Variable in class tools.HostItem
    +
     
    +
    UnknownHost - Exception in remoteException
    +
     
    +
    UnknownHost() - Constructor for exception remoteException.UnknownHost
    +
     
    +
    Unregister - Class in protocolP2P
    +
    +
    Representation of payload for unregister.
    +
    +
    Unregister(HostItem) - Constructor for class protocolP2P.Unregister
    +
    +
    Constructor with hostItem (typically used by client)
    +
    +
    Unregister(byte[]) - Constructor for class protocolP2P.Unregister
    +
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    +
    +
    updateFileList() - Method in class serverP2P.FileWatcher
    +
    +
    Update fileList and returns true if different than old list.
    +
    +
    updateFileList() - Method in class serverP2P.ServerManagement
    +
    +
    Trigger a manual check of the file list
    +
    +
    UpdateRatio - Class in protocolP2P
    +
    +
    Representation of payload for update ratio.
    +
    +
    UpdateRatio(HostItem, HostItem, long) - Constructor for class protocolP2P.UpdateRatio
    +
    +
    Constructor with hostItem (typically used by client)
    +
    +
    UpdateRatio(byte[]) - Constructor for class protocolP2P.UpdateRatio
    +
    +
    Constructor (typically used by tracker) with a byte[] parameter containing the Packet received.
    +
    +
    +A B C D E F G H I J L M N O P R S T U V W 
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/index-files/index-2.html b/doc/javadoc/index-files/index-2.html index 65a9188..6b2593b 100644 --- a/doc/javadoc/index-files/index-2.html +++ b/doc/javadoc/index-files/index-2.html @@ -1,22 +1,12 @@ - + - + B-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    B

    +
    baseDirectory - Variable in class clientP2P.ClientManagement
    +
     
    +
    baseDirectory - Variable in class serverP2P.FileWatcher
    +
     
    +
    baseDirectory - Variable in class serverP2P.ServerManagement
    +
     
    +
    BY_CODE - Static variable in enum protocolP2P.RequestResponseCode
    +
     
    +
    BY_NAME - Static variable in enum protocolP2P.HashAlgorithm
    +
     
    BytesArrayTools - Class in tools
    Helper to manipulate byte[].
    -
    BytesArrayTools() - Constructor for class tools.BytesArrayTools
    +
    BytesArrayTools() - Constructor for class tools.BytesArrayTools
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-20.html b/doc/javadoc/index-files/index-20.html new file mode 100644 index 0000000..c4d5d68 --- /dev/null +++ b/doc/javadoc/index-files/index-20.html @@ -0,0 +1,175 @@ + + + + + +V-Index + + + + + + + + +
    + + + + + + + +
    + + +
    A B C D E F G H I J L M N O P R S T U V W  + + +

    V

    +
    +
    valueOf(String) - Static method in enum protocolP2P.CodeType
    +
    +
    Returns the enum constant of this type with the specified name.
    +
    +
    valueOf(String) - Static method in enum protocolP2P.HashAlgorithm
    +
    +
    Returns the enum constant of this type with the specified name.
    +
    +
    valueOf(String) - Static method in enum protocolP2P.RequestResponseCode
    +
    +
    Returns the enum constant of this type with the specified name.
    +
    +
    valueOf(String) - Static method in enum tools.LogLevel
    +
    +
    Returns the enum constant of this type with the specified name.
    +
    +
    values() - Static method in enum protocolP2P.CodeType
    +
    +
    Returns an array containing the constants of this enum type, in +the order they are declared.
    +
    +
    values() - Static method in enum protocolP2P.HashAlgorithm
    +
    +
    Returns an array containing the constants of this enum type, in +the order they are declared.
    +
    +
    values() - Static method in enum protocolP2P.RequestResponseCode
    +
    +
    Returns an array containing the constants of this enum type, in +the order they are declared.
    +
    +
    values() - Static method in enum tools.LogLevel
    +
    +
    Returns an array containing the constants of this enum type, in +the order they are declared.
    +
    +
    version - Variable in class protocolP2P.ProtocolP2PPacket
    +
     
    +
    VERSION_POSITION - Static variable in class protocolP2P.ProtocolP2PPacket
    +
     
    +
    VersionError - Exception in localException
    +
     
    +
    VersionError() - Constructor for exception localException.VersionError
    +
     
    +
    VersionRemoteError - Exception in remoteException
    +
     
    +
    VersionRemoteError() - Constructor for exception remoteException.VersionRemoteError
    +
     
    +
    +A B C D E F G H I J L M N O P R S T U V W 
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/index-files/index-21.html b/doc/javadoc/index-files/index-21.html new file mode 100644 index 0000000..e3f9bdc --- /dev/null +++ b/doc/javadoc/index-files/index-21.html @@ -0,0 +1,329 @@ + + + + + +W-Index + + + + + + + + +
    + + + + + + + +
    + + +
    A B C D E F G H I J L M N O P R S T U V W  + + +

    W

    +
    +
    write(byte[], int, int) - Static method in class tools.BytesArrayTools
    +
    +
    Write int in a bytearray
    +
    +
    write(byte[], int, long) - Static method in class tools.BytesArrayTools
    +
    +
    Write long in a bytearray
    +
    +
    write(byte[], String[], int, String) - Static method in class tools.BytesArrayTools
    +
    +
    Write a list of string to a byte array.
    +
    +
    write(byte[], String, int) - Static method in class tools.BytesArrayTools
    +
    +
    Write a string to a byte array.
    +
    +
    write(byte[], byte[], int) - Static method in class tools.BytesArrayTools
    +
    +
    Write byte Array to byte Array.
    +
    +
    write(String, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    write(Exception, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    write16Bits(byte[], int, int) - Static method in class tools.BytesArrayTools
    +
    +
    Write int in a bytearray 16 bits version
    +
    +
    writeLock - Variable in class tracker.TrackerManagement
    +
     
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientDownloadPartTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientDownloadPartTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientDownloadPartUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientDownloadPartUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientInterface
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientInterface
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientManagement
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientManagement
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.FileWatcher
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.FileWatcher
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.FileWatcherTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.FileWatcherTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.FileWatcherUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.FileWatcherUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.RatioWatcher
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.RatioWatcher
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.RatioWatcherTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.RatioWatcherTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.RatioWatcherUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.RatioWatcherUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.ServerManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.ServerManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class serverP2P.ServerManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class serverP2P.ServerManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class tools.ServeErrors
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class tools.ServeErrors
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class tracker.TrackerManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class tracker.TrackerManagementTCP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(String, LogLevel) - Method in class tracker.TrackerManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeLog(Exception, LogLevel) - Method in class tracker.TrackerManagementUDP
    +
    +
    Implementation of writeLog
    +
    +
    writeTCP(String, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    writeTCP(Exception, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    writeUDP(String, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    writeUDP(Exception, LogLevel) - Method in class tools.Logger
    +
    +
    Appends log to filelog and print to stderr.
    +
    +
    +A B C D E F G H I J L M N O P R S T U V W 
    + +
    + + + + + + + +
    + + + + diff --git a/doc/javadoc/index-files/index-3.html b/doc/javadoc/index-files/index-3.html index 98313f2..58f29e4 100644 --- a/doc/javadoc/index-files/index-3.html +++ b/doc/javadoc/index-files/index-3.html @@ -1,22 +1,12 @@ - + - + C-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    C

    +
    cachePunishmentProbability - Variable in class serverP2P.RatioWatcher
    +
     
    +
    checkCheckSum(byte[]) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Used to check if the checksum is correct
    +
    +
    checkProtocolVersion() - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Used to check protocol version when a Packet is constructed from bytes[].
    +
    +
    checkRequestResponseCode() - Method in class protocolP2P.Payload
    +
    +
    Used to check RRCode used is compatible with this class use, or if a more specific subclass is required.
    +
    +
    CHECKSUM_POSITION - Static variable in class protocolP2P.ProtocolP2PPacketUDP
    +
     
    +
    checkTasksStatus() - Method in class clientP2P.ClientDownload
    +
    +
    Remove tasks from failed threads.
    +
    +
    clean() - Method in class serverP2P.RatioWatcher
    +
    +
    Invalidate the cache by cleaning all hashmaps
    +
    +
    cleanStrings(String) - Static method in class tools.BytesArrayTools
    +
    +
    Remove trailing null bytes from string.
    +
    +
    client - Variable in class clientP2P.ClientDownload
    +
     
    +
    client - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    client - Variable in class clientP2P.ClientManagement
    +
     
    +
    client - Variable in class protocolP2P.UpdateRatio
    +
     
    +
    CLIENT_PORT_START_POSITION - Static variable in class protocolP2P.UpdateRatio
    +
     
    +
    ClientDownload - Class in clientP2P
    +
    +
    Class to download file
    +
    +
    ClientDownload(String, List<HostItem>, String, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownload
    +
    +
    Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
    +
    +
    ClientDownloadPart - Class in clientP2P
    +
    +
    Class to download file parts.
    +
    +
    ClientDownloadPart(ClientDownload, String, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownloadPart
    +
    +
    Constructor with filename, socket, and part subdir
    +
    +
    ClientDownloadPartTCP - Class in clientP2P
    +
    +
    Class to download file parts on tcp.
    +
    +
    ClientDownloadPartTCP(ClientDownload, String, Socket, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownloadPartTCP
    +
    +
    Constructor with filename, socket, and part subdir
    +
    +
    ClientDownloadPartUDP - Class in clientP2P
    +
    +
    Class to download file parts on udp.
    +
    +
    ClientDownloadPartUDP(ClientDownload, String, DatagramSocket, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownloadPartUDP
    +
    +
    Constructor with filename, socket, and part subdir
    +
    +
    ClientDownloadTCP - Class in clientP2P
    +
    +
    Class to download file from tcp
    +
    +
    ClientDownloadTCP(String, List<HostItem>, String, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownloadTCP
    +
    +
    Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
    +
    +
    ClientDownloadUDP - Class in clientP2P
    +
    +
    Class to download file from udp
    +
    +
    ClientDownloadUDP(String, List<HostItem>, String, String, Logger, HostItem, HostItem) - Constructor for class clientP2P.ClientDownloadUDP
    +
    +
    Constructor with parameters: filename, list of hosts, parts subdirectory and dirStorage
    +
    +
    ClientHandler(Socket) - Constructor for class serverP2P.ServerManagementTCP.ClientHandler
    +
    +
    Constructor with a socket.
    +
    +
    ClientHandler(Socket) - Constructor for class tracker.TrackerManagementTCP.ClientHandler
    +
    +
    Constructor with a socket.
    +
    +
    ClientInterface - Class in clientP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT CLIENT interface
    +
    +
    ClientInterface(ClientManagement, Logger) - Constructor for class clientP2P.ClientInterface
    +
    +
    Constructor with clientManagement and logger.
    +
    +
    ClientInterfaceCLI - Class in clientP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT CLIENT interface for CLI
    +
    +
    ClientInterfaceCLI(ClientManagement, Logger, Scanner) - Constructor for class clientP2P.ClientInterfaceCLI
    +
    +
    Constructor with clientManagement, logger and scanner.
    +
    +
    ClientInterfaceGUI - Class in gui
    +
    +
    Implementation of P2P-JAVA-PROJECT CLIENT interface for CLI
    +
    +
    ClientInterfaceGUI(ClientManagement, Logger, ServerManagementTCP, ServerManagementUDP) - Constructor for class gui.ClientInterfaceGUI
    +
     
    +
    clientManagement - Variable in class clientP2P.ClientInterface
    +
     
    +
    ClientManagement - Class in clientP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT CLIENT
    +
    +
    ClientManagement(String, HostItem, String, Logger, HostItem) - Constructor for class clientP2P.ClientManagement
    +
    +
    Constructor with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
    +
    +
    clientManagement - Variable in class gui.DownloadFileGUI
    +
     
    +
    clientManagement - Variable in class gui.DownloadSelectionGen
    +
     
    +
    ClientManagementTCP - Class in clientP2P
    +
    +
    Implementation of P2P-JAVA-PROJECT CLIENT
    +
    +
    ClientManagementTCP(String, HostItem, String, Logger, HostItem) - Constructor for class clientP2P.ClientManagementTCP
    +
    +
    Constructor for TCP implementation, with baseDirectory, tracker, partsSubdir, logger, and scanner parameters.
    +
    ClientManagementUDP - Class in clientP2P
    Implementation of P2P-JAVA-PROJECT CLIENT
    -
    ClientManagementUDP(String, String, int) - Constructor for class clientP2P.ClientManagementUDP
    +
    ClientManagementUDP(String, HostItem, String, Logger, HostItem) - Constructor for class clientP2P.ClientManagementUDP
    -
    Constructor for UDP implementation, with baseDirectory and UDPPort parameters.
    +
    Constructor for UDP implementation, with baseDirectory, tracker, partsSubdir, logger and scanner parameters.
    clientP2P - package clientP2P
     
    ClientP2P - Class in clientP2P
    -
     
    -
    ClientP2P() - Constructor for class clientP2P.ClientP2P
    -
     
    -
    codeType - Variable in enum protocolP2P.RequestResponseCode
    -
     
    +
    +
    Client + Server implementation.
    +
    +
    ClientP2P(String, int, String, int) - Constructor for class clientP2P.ClientP2P
    +
    +
    Constructor.
    +
    +
    ClientP2PGUI - Class in gui
    +
    +
    Client + Server implementation in GUI
    +
    +
    ClientP2PGUI(String, int, String, int, String) - Constructor for class gui.ClientP2PGUI
    +
    +
    Constructor.
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientDownload
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientManagement
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class tracker.TrackerManagement
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class tracker.TrackerManagementTCP
    +
    +
    Close HostItem socket
    +
    +
    closeHostItemSocket(HostItem) - Method in class tracker.TrackerManagementUDP
    +
    +
    Close HostItem socket
    +
    +
    closeSocket() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Close the socket
    +
    +
    closeSocket() - Method in class clientP2P.ClientDownloadPartTCP
    +
    +
    Close the socket
    +
    +
    closeSocket() - Method in class clientP2P.ClientDownloadPartUDP
    +
    +
    Close the socket
    +
    +
    closeSocket() - Method in class serverP2P.ServerManagement
    +
    +
    Closes socket
    +
    +
    closeSocket() - Method in class serverP2P.ServerManagementTCP
    +
    +
    Closes socket
    +
    +
    closeSocket() - Method in class serverP2P.ServerManagementUDP
    +
    +
    Closes socket
    +
    +
    closeTCPSocket() - Method in class tools.HostItem
    +
    +
    Closes tcp socket
    +
    +
    closeTrackerSocket() - Method in class clientP2P.ClientManagement
    +
    +
    Close Tracker socket
    +
    +
    closeTrackerSocket() - Method in class clientP2P.ClientManagementTCP
    +
    +
    Close Tracker socket
    +
    +
    closeTrackerSocket() - Method in class clientP2P.ClientManagementUDP
    +
    +
    Close Tracker socket
    +
    +
    closeTrackerSocket() - Method in class serverP2P.RatioWatcher
    +
    +
    Closes tracker socket
    +
    +
    closeTrackerSocket() - Method in class serverP2P.RatioWatcherTCP
    +
    +
    Closes tracker socket
    +
    +
    closeTrackerSocket() - Method in class serverP2P.RatioWatcherUDP
    +
    +
    Closes tracker socket
    +
    +
    closeUDPSocket() - Method in class tools.HostItem
    +
    +
    Closes udp socket
    +
    CodeType - Enum in protocolP2P
    Request/Response code's type enum.
    +
    CodeType() - Constructor for enum protocolP2P.CodeType
    +
     
    +
    codeType - Variable in enum protocolP2P.RequestResponseCode
    +
     
    codeValue - Variable in enum protocolP2P.RequestResponseCode
     
    +
    computeCheckSum(byte[]) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Compute checksum associated to packet.
    +
    +
    computeHashsum(String, HashAlgorithm) - Method in class clientP2P.ClientManagement
    +
    +
    Compute Hashsum of a file.
    +
    +
    computeStringArraySize(String[], String) - Static method in class tools.BytesArrayTools
    +
    +
    Compute size of string array once converted to byte array with separator
    +
    +
    connect() - Method in class gui.ClientP2PGUI
    +
    +
    Initiate a connection using fields from ArgumentsGen
    +
    +
    constructPacket(byte[]) - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Private constructor helper with packet as byte[] parameter (typically used when receiving Packet response/request).
    +
    +
    constructPacket(byte[], Socket) - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Private constructor helper with packet as byte[] parameter and (typically used when receiving Packet request).
    +
    +
    constructPacket(byte[]) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Private constructor helper with packet as byte[] parameter (typically used when receiving Packet response/request).
    +
    +
    constructPacket(byte[], DatagramSocket) - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Private constructor helper with packet as byte[] parameter and (typically used when receiving Packet request).
    +
    +
    createDownloadPart(HostItem) - Method in class clientP2P.ClientDownload
    +
    +
    Create a clientDownloadPart
    +
    +
    createDownloadPart(HostItem) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Create a clientDownloadPart
    +
    +
    createDownloadPart(HostItem) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Create a clientDownloadPart
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientDownloadPartTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientDownloadPartUDP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class serverP2P.RatioWatcher
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class serverP2P.RatioWatcherTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class serverP2P.RatioWatcherUDP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class serverP2P.ServerManagementTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class serverP2P.ServerManagementUDP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class tools.ServeErrors
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class tracker.TrackerManagementTCP
    +
    +
    Create packets
    +
    +
    createProtocolP2PPacket(T) - Method in class tracker.TrackerManagementUDP
    +
    +
    Create packets
    +
    +
    createSubdir(String) - Method in class tools.Directories
    +
    +
    Create a subdirectory.
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-4.html b/doc/javadoc/index-files/index-4.html index a50f3ff..4700f94 100644 --- a/doc/javadoc/index-files/index-4.html +++ b/doc/javadoc/index-files/index-4.html @@ -1,22 +1,12 @@ - + - + D-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    D

    +
    DATA_SIZE_POSITION - Static variable in class protocolP2P.UpdateRatio
    +
     
    +
    dataHomeDirectory - Variable in class tools.Directories
    +
     
    +
    dataSize - Variable in class protocolP2P.UpdateRatio
    +
     
    +
    DEBUG - Static variable in class clientP2P.ClientP2P
    +
     
    +
    DEBUG - Static variable in class gui.ClientP2PGUI
    +
     
    +
    DEBUG - Static variable in class serverP2P.ServerP2P
    +
     
    +
    DEBUG - Static variable in class tracker.Tracker
    +
     
    +
    debugMode - Variable in class tools.Logger
    +
     
    +
    defaultPort - Variable in class tools.PortRange
    +
     
    +
    Denied - Class in protocolP2P
    +
    +
    Representation of payload for denied response.
    +
    +
    Denied(String, long) - Constructor for class protocolP2P.Denied
    +
    +
    Constructor (typically used by server) with informations about file part to send as parameters.
    +
    +
    Denied(byte[]) - Constructor for class protocolP2P.Denied
    +
    +
    Constructor (typically used by client) with Packet received as parameter.
    +
    +
    DIFF_PERCENT_PROGRESS - Static variable in class clientP2P.ClientDownload
    +
     
    +
    DIFF_TIME_PROGRESS_MILLIS - Static variable in class clientP2P.ClientDownload
    +
     
    +
    directories - Variable in class clientP2P.ClientP2P
    +
     
    +
    directories - Variable in class gui.ClientP2PGUI
    +
     
    +
    directories - Variable in class serverP2P.ServerP2P
    +
     
    Directories - Class in tools
    Helper to get application directories.
    -
    Directories(String) - Constructor for class tools.Directories
    +
    Directories(String) - Constructor for class tools.Directories
    Constructor with projectName parameter.
    +
    directories - Variable in class tracker.Tracker
    +
     
    +
    dirStorage - Variable in class clientP2P.ClientDownload
    +
     
    +
    DiscoverRequest - Class in protocolP2P
    +
    +
    Representation of payload for discover request.
    +
    +
    DiscoverRequest(String) - Constructor for class protocolP2P.DiscoverRequest
    +
    +
    Constructor with filename (typically used by client).
    +
    +
    DiscoverRequest(byte[]) - Constructor for class protocolP2P.DiscoverRequest
    +
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    +
    +
    DiscoverResponse - Class in protocolP2P
    +
    +
    Representation of payload for discover response.
    +
    +
    DiscoverResponse(String, List<HostItem>) - Constructor for class protocolP2P.DiscoverResponse
    +
    +
    Constructor with filename (typically used by tracker).
    +
    +
    DiscoverResponse(byte[]) - Constructor for class protocolP2P.DiscoverResponse
    +
    +
    Constructor (typically used by server) with a byte[] parameter containing the Packet received.
    +
    +
    doTasks() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Send one request and wait for one response.
    +
    +
    download(String) - Method in class clientP2P.ClientManagement
    +
    +
    Try to download a file
    +
    +
    download() - Method in class gui.DownloadFileGUI
    +
     
    +
    downLoader - Variable in class clientP2P.ClientManagement
    +
     
    +
    DownloadFileGUI - Class in gui
    +
     
    +
    DownloadFileGUI(String, ClientManagement, Logger, ServerManagementTCP, ServerManagementUDP) - Constructor for class gui.DownloadFileGUI
    +
     
    +
    downloadPart(T) - Method in class clientP2P.ClientDownloadPart
    +
    +
    Download file part associated to the request send (d).
    +
    +
    DownloadSelectionGen - Class in gui
    +
     
    +
    DownloadSelectionGen(String[], ClientManagement, Logger, ServerManagementTCP, ServerManagementUDP) - Constructor for class gui.DownloadSelectionGen
    +
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-5.html b/doc/javadoc/index-files/index-5.html index 94c2a2f..a0bf8df 100644 --- a/doc/javadoc/index-files/index-5.html +++ b/doc/javadoc/index-files/index-5.html @@ -1,22 +1,12 @@ - + - + E-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    E

    -
    EMPTY_DIRECTORY - protocolP2P.RequestResponseCode
    -
     
    -
    EMPTY_FILE - protocolP2P.RequestResponseCode
    -
     
    EmptyDirectory - Exception in remoteException
     
    -
    EmptyDirectory() - Constructor for exception remoteException.EmptyDirectory
    +
    EmptyDirectory() - Constructor for exception remoteException.EmptyDirectory
     
    EmptyFile - Exception in remoteException
     
    -
    EmptyFile() - Constructor for exception remoteException.EmptyFile
    +
    EmptyFile() - Constructor for exception remoteException.EmptyFile
     
    -
    ERROR - protocolP2P.CodeType
    +
    equals(Object) - Method in class tools.HostItem
    +
    +
    Override of equals method
    +
    +
    ErrorFrame - Class in gui
    +
     
    +
    ErrorFrame(String) - Constructor for class gui.ErrorFrame
     
    exception - package exception
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-6.html b/doc/javadoc/index-files/index-6.html index 94e5e20..8993650 100644 --- a/doc/javadoc/index-files/index-6.html +++ b/doc/javadoc/index-files/index-6.html @@ -1,22 +1,12 @@ - + - + F-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    F

    +
    failed - Variable in class clientP2P.ClientDownloadPart
    +
     
    FileList - Class in protocolP2P
    Representation of payload for list response.
    -
    FileList(String[]) - Constructor for class protocolP2P.FileList
    +
    FileList(String[]) - Constructor for class protocolP2P.FileList
    Constructor (typically used by the server) with an ArrayList parameter containing filenames.
    +
    FileList(byte[]) - Constructor for class protocolP2P.FileList
    +
    +
    Constructor (typically used by client) with a byte[] parameter containing the Packet received.
    +
    +
    fileList - Variable in class protocolP2P.FileList
    +
     
    +
    fileList - Variable in class serverP2P.FileWatcher
    +
     
    +
    fileList - Variable in class tracker.TrackerManagement
    +
     
    +
    fileListWatcher - Variable in class serverP2P.ServerManagement
    +
     
    +
    filename - Variable in class clientP2P.ClientDownload
    +
     
    +
    filename - Variable in class clientP2P.ClientDownloadPart
    +
     
    +
    filename - Variable in class protocolP2P.Denied
    +
     
    +
    filename - Variable in class protocolP2P.DiscoverRequest
    +
     
    +
    filename - Variable in class protocolP2P.DiscoverResponse
    +
     
    +
    filename - Variable in class protocolP2P.FilePart
    +
     
    +
    filename - Variable in class protocolP2P.HashRequest
    +
     
    +
    filename - Variable in class protocolP2P.HashResponse
    +
     
    +
    filename - Variable in class protocolP2P.LoadRequest
    +
     
    +
    filename - Variable in class protocolP2P.SizeRequest
    +
     
    +
    filename - Variable in class protocolP2P.SizeResponse
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.Denied
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.DiscoverResponse
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.FilePart
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.HashRequest
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.HashResponse
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.LoadRequest
    +
     
    +
    FILENAME_POSITION - Static variable in class protocolP2P.SizeResponse
    +
     
    +
    FILENAME_SIZE_POSITION - Static variable in class protocolP2P.DiscoverResponse
    +
     
    +
    FILENAME_SIZE_POSITION - Static variable in class protocolP2P.FilePart
    +
     
    +
    FILENAME_SIZE_POSITION - Static variable in class protocolP2P.HashRequest
    +
     
    +
    FILENAME_SIZE_POSITION - Static variable in class protocolP2P.HashResponse
    +
     
    +
    FILENAME_SIZE_POSITION - Static variable in class protocolP2P.LoadRequest
    +
     
    FilePart - Class in protocolP2P
    Representation of payload for load response.
    -
    FilePart(String, long, long, byte[]) - Constructor for class protocolP2P.FilePart
    +
    FilePart(String, long, byte[]) - Constructor for class protocolP2P.FilePart
    Constructor (typically used by server) with informations about file part to send as parameters.
    +
    FilePart(byte[]) - Constructor for class protocolP2P.FilePart
    +
    +
    Constructor (typically used by client) with Packet received as parameter.
    +
    +
    fileSize - Variable in class tracker.TrackerManagement
    +
     
    +
    fileToDownload - Variable in class gui.DownloadFileGUI
    +
     
    +
    FileWatcher - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about file list
    +
    +
    FileWatcher(Logger, long, HostItem, HostItem, String) - Constructor for class serverP2P.FileWatcher
    +
    +
    Constructor
    +
    +
    FileWatcherTCP - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about file list (TCP impl.)
    +
    +
    FileWatcherTCP(Logger, long, HostItem, HostItem, String) - Constructor for class serverP2P.FileWatcherTCP
    +
    +
    Constructor
    +
    +
    FileWatcherUDP - Class in serverP2P
    +
    +
    Class allowing to keep the tracker informed about file list (UDP impl.)
    +
    +
    FileWatcherUDP(Logger, long, HostItem, HostItem, String) - Constructor for class serverP2P.FileWatcherUDP
    +
    +
    Constructor
    +
    +
    force - Variable in class serverP2P.FileWatcher
    +
     
    +
    force - Variable in class serverP2P.RatioWatcher
    +
     
    +
    fromCode(byte) - Static method in enum protocolP2P.RequestResponseCode
    +
    +
    Gives enum from Packet code.
    +
    +
    fromName(String) - Static method in enum protocolP2P.HashAlgorithm
    +
    +
    Gives enum from name.
    +
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-7.html b/doc/javadoc/index-files/index-7.html index bdcccea..9372fab 100644 --- a/doc/javadoc/index-files/index-7.html +++ b/doc/javadoc/index-files/index-7.html @@ -1,22 +1,12 @@ - + - + G-Index - - + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W 

    G

    -
    getDataHomeDirectory() - Method in class tools.Directories
    +
    getAlgoList() - Method in class protocolP2P.HashRequest
    +
    +
    AlgoList getter.
    +
    +
    getClient() - Method in class protocolP2P.UpdateRatio
    +
    +
    Client getter.
    +
    +
    getDataHomeDirectory() - Method in class tools.Directories
    Getter for dataHomeDirectory.
    -
    getFileList() - Method in class protocolP2P.FileList
    +
    getDataSize() - Method in class protocolP2P.UpdateRatio
    +
    +
    dataSize getter.
    +
    +
    getDefaultPort() - Method in class tools.PortRange
    +
    +
    Default port getter
    +
    +
    getDone() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Get list of downloaded file parts offset, then clear this list.
    +
    +
    getFailed() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Get list of offsets that have not be downloaded if failed, else + empty list.
    +
    +
    getFileList() - Method in class protocolP2P.FileList
    fileList getter.
    -
    getFilename() - Method in class protocolP2P.FilePart
    +
    getFileList() - Method in class serverP2P.FileWatcher
    +
    +
    FileList getter
    +
    +
    getFilename() - Method in class protocolP2P.Denied
    filename getter.
    -
    getFilename() - Method in class protocolP2P.LoadRequest
    +
    getFilename() - Method in class protocolP2P.DiscoverRequest
    +
    +
    Filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.DiscoverResponse
    +
    +
    Filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.FilePart
    filename getter.
    -
    getOffset() - Method in class protocolP2P.FilePart
    +
    getFilename() - Method in class protocolP2P.HashRequest
    +
    +
    Filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.HashResponse
    +
    +
    filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.LoadRequest
    +
    +
    filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.SizeRequest
    +
    +
    filename getter.
    +
    +
    getFilename() - Method in class protocolP2P.SizeResponse
    +
    +
    filename getter.
    +
    +
    getFilenameSize(byte[]) - Method in class protocolP2P.FilePart
    +
    +
    Read filename’s size from Packet.
    +
    +
    getHash(HashAlgorithm) - Method in class protocolP2P.HashResponse
    +
    +
    hash getter
    +
    +
    getHashSum512() - Method in class clientP2P.ClientDownload
    +
    +
    Getter for hash512sum
    +
    +
    getHashSum512(HostItem) - Method in class clientP2P.ClientDownload
    +
    +
    Get hashsum from server.
    +
    +
    getHostItem() - Method in class protocolP2P.LoadRequest
    +
    +
    hostItem getter.
    +
    +
    getHostItem() - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Get hostItem of the sender
    +
    +
    getHostItem() - Method in class protocolP2P.ProtocolP2PPacketTCP
    +
    +
    Get hostItem of the sender
    +
    +
    getHostItem() - Method in class protocolP2P.ProtocolP2PPacketUDP
    +
    +
    Get hostItem of the sender
    +
    +
    getHostItem() - Method in class protocolP2P.RatioRequest
    +
    +
    HostItem getter.
    +
    +
    getHostItem() - Method in class protocolP2P.RatioResponse
    +
    +
    HostItem getter.
    +
    +
    getHostItem() - Method in class protocolP2P.Register
    +
    +
    HostItem getter.
    +
    +
    getHostItem() - Method in class protocolP2P.Unregister
    +
    +
    HostItem getter.
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientDownload
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientDownloadTCP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientDownloadUDP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientManagement
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class tracker.TrackerManagement
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class tracker.TrackerManagementTCP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostItemSocket(HostItem) - Method in class tracker.TrackerManagementUDP
    +
    +
    Getter for HostItem socket
    +
    +
    getHostList() - Method in class protocolP2P.DiscoverResponse
    +
    +
    HostList getter.
    +
    +
    getHostname() - Method in class tools.HostItem
    +
    +
    Getter for hostname
    +
    +
    getInetAddress() - Method in class tools.HostItem
    +
    +
    Get InetAddress associated to this HostItem.
    +
    +
    getMaxSizePartialContent() - Method in class protocolP2P.LoadRequest
    +
    +
    maxSizePartialContent getter.
    +
    +
    getName() - Method in enum protocolP2P.HashAlgorithm
    +
     
    +
    getOffset() - Method in class protocolP2P.Denied
    offset getter.
    -
    getPartialContent() - Method in class protocolP2P.FilePart
    +
    getOffset() - Method in class protocolP2P.FilePart
    +
    +
    offset getter.
    +
    +
    getOffset() - Method in class protocolP2P.LoadRequest
    +
    +
    offset getter.
    +
    +
    getPartialContent() - Method in class protocolP2P.FilePart
    partialContent getter.
    -
    getPayload() - Method in class protocolP2P.ProtocolP2PDatagram
    +
    getPayload() - Method in class protocolP2P.ProtocolP2PPacket
    +
    +
    Returns Payload associated with the Packet.
    +
    +
    getPayloadSize(byte[]) - Static method in class protocolP2P.Payload
    +
    +
    Get payload’s size from a Packet.
    +
    +
    getPort() - Method in class tools.HostItem
    +
    +
    Getter for port
    +
    +
    getPunishmentProbability(HostItem) - Method in class serverP2P.RatioWatcher
    +
    +
    Get Up-ratio for an applications
    +
    +
    getReceivedBytesCount() - Method in class clientP2P.ClientDownloadPart
    -
    Returns Payload associated with the datagram.
    +
    receivedBytesCount getter
    -
    getRequestResponseCode() - Method in class protocolP2P.Payload
    +
    getRequestResponseCode() - Method in class protocolP2P.Payload
    RRCode getter.
    -
    getTotalSize() - Method in class protocolP2P.FilePart
    +
    getServer() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Server getter
    +
    +
    getServer() - Method in class protocolP2P.UpdateRatio
    +
    +
    Server getter
    +
    +
    getSha512Map() - Method in class serverP2P.FileWatcher
    +
    +
    Sha512 map getter
    +
    +
    getSocket() - Method in class clientP2P.ClientDownloadPart
    +
    +
    Get the socket
    +
    +
    getSocket() - Method in class clientP2P.ClientDownloadPartTCP
    +
    +
    Get the socket
    +
    +
    getSocket() - Method in class clientP2P.ClientDownloadPartUDP
    +
    +
    Get the socket
    +
    +
    getSuccess() - Method in class clientP2P.ClientDownload
    +
    +
    Success getter.
    +
    +
    getTCPSocket() - Method in class tools.HostItem
    +
    +
    Get TCP Socket.
    +
    +
    getTotalDown() - Method in class protocolP2P.RatioResponse
    +
    +
    totalDown getter.
    +
    +
    getTotalSize() - Method in class protocolP2P.SizeResponse
    totalSize getter.
    +
    getTotalUp() - Method in class protocolP2P.RatioResponse
    +
    +
    totalUp getter.
    +
    +
    getTrackerSocket() - Method in class clientP2P.ClientManagement
    +
    +
    Getter for tracker socket
    +
    +
    getTrackerSocket() - Method in class clientP2P.ClientManagementTCP
    +
    +
    Getter for tracker socket
    +
    +
    getTrackerSocket() - Method in class clientP2P.ClientManagementUDP
    +
    +
    Getter for tracker socket
    +
    +
    getTrackerSocket() - Method in class serverP2P.RatioWatcher
    +
    +
    Tracker socket getter
    +
    +
    getTrackerSocket() - Method in class serverP2P.RatioWatcherTCP
    +
    +
    Tracker socket getter
    +
    +
    getTrackerSocket() - Method in class serverP2P.RatioWatcherUDP
    +
    +
    Tracker socket getter
    +
    +
    getTrackerSocket() - Method in class serverP2P.ServerManagement
    +
    +
    Getter for tracker socket
    +
    +
    getTrackerSocket() - Method in class serverP2P.ServerManagementTCP
    +
    +
    Getter for tracker socket
    +
    +
    getTrackerSocket() - Method in class serverP2P.ServerManagementUDP
    +
    +
    Getter for tracker socket
    +
    +
    getUDPSocket() - Method in class tools.HostItem
    +
    +
    Get UDP Socket + return UDP Socket
    +
    +
    gui - package gui
    +
     
    +
    Gui - Class in gui
    +
    +
    Class to download file
    +
    +
    Gui() - Constructor for class gui.Gui
    +
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-8.html b/doc/javadoc/index-files/index-8.html index 966d577..eca1c90 100644 --- a/doc/javadoc/index-files/index-8.html +++ b/doc/javadoc/index-files/index-8.html @@ -1,52 +1,37 @@ - + - -I-Index - - + +H-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    I

    +

    H

    -
    INTERNAL_ERROR - protocolP2P.RequestResponseCode
    +
    handleClientRequest() - Method in class serverP2P.ServerManagementTCP.ClientHandler
    +
    +
    Respond to next request incomming on socket s.
    +
    +
    handleClientRequest() - Method in class tracker.TrackerManagementTCP.ClientHandler
    +
    +
    Respond to next request incomming on socket s.
    +
    +
    handleDiscover(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Discover request
    +
    +
    handleListRequest(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle List request
    +
    +
    handleListResponse(T, HostItem) - Method in class tracker.TrackerManagement
    +
    +
    Handle List Responses
    +
    +
    handleRatio(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Ratio request
    +
    +
    handleRegister(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Registering
    +
    +
    handleRequest(T) - Method in class serverP2P.ServerManagement
    +
    +
    Handle request.
    +
    +
    handleRequest(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle requests
    +
    +
    handleSizeRequest(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Size request
    +
    +
    handleUnregister(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Unregistering
    +
    +
    handleUpdateRatio(T) - Method in class tracker.TrackerManagement
    +
    +
    Handle Update Ratio
    +
    +
    hasFailed() - Method in class clientP2P.ClientDownloadPart
    +
    +
    True if thread has failed to get a file.
    +
    +
    hash512 - Variable in class clientP2P.ClientDownload
    +
     
    +
    HashAlgorithm - Enum in protocolP2P
    +
    +
    HashAlgorithm enum.
    +
    +
    HashAlgorithm(String) - Constructor for enum protocolP2P.HashAlgorithm
    +
     
    +
    hashCode() - Method in class tools.HostItem
    +
    +
    Override of hashCode method
    +
    +
    hashes - Variable in class protocolP2P.HashResponse
    +
     
    +
    HashRequest - Class in protocolP2P
    +
    +
    Representation of payload for hash request.
    +
    +
    HashRequest(String, HashAlgorithm[]) - Constructor for class protocolP2P.HashRequest
    +
    +
    Constructor (typically used by the server) with a filename parameter.
    +
    +
    HashRequest(byte[]) - Constructor for class protocolP2P.HashRequest
    +
    +
    Constructor (typically used by client) with a byte[] parameter containing the Packet received.
    +
    +
    HashResponse - Class in protocolP2P
    +
    +
    Representation of payload for hash response.
    +
    +
    HashResponse(String, Map<HashAlgorithm, byte[]>) - Constructor for class protocolP2P.HashResponse
    +
    +
    Constructor (typically used by the server) with a filename parameter.
    +
    +
    HashResponse(byte[]) - Constructor for class protocolP2P.HashResponse
    +
    +
    Constructor (typically used by client) with a byte[] parameter containing the Packet received.
    +
    +
    hostItem - Variable in class protocolP2P.LoadRequest
    +
     
    +
    hostItem - Variable in class protocolP2P.RatioRequest
    +
     
    +
    hostItem - Variable in class protocolP2P.RatioResponse
     
    -
    InternalError - Exception in exception
    +
    hostItem - Variable in class protocolP2P.Register
     
    -
    InternalError() - Constructor for exception exception.InternalError
    +
    hostItem - Variable in class protocolP2P.Unregister
     
    -
    InternalRemoteError - Exception in remoteException
    +
    HostItem - Class in tools
    +
    +
    Class to store hostnames + ports
    +
    +
    HostItem(String, int) - Constructor for class tools.HostItem
    +
    +
    Constructor with hostname and port
    +
    +
    HostItem(Socket) - Constructor for class tools.HostItem
    +
    +
    Constructor from Socket.
    +
    +
    hostList - Variable in class clientP2P.ClientDownload
     
    -
    InternalRemoteError() - Constructor for exception remoteException.InternalRemoteError
    +
    hostList - Variable in class clientP2P.ClientManagement
    +
     
    +
    hostList - Variable in class protocolP2P.DiscoverResponse
    +
     
    +
    hostList - Variable in class tracker.TrackerManagement
    +
     
    +
    hostname - Variable in class tools.HostItem
    +
     
    +
    HOSTNAME_START_POSITION - Static variable in class protocolP2P.RatioRequest
    +
     
    +
    HOSTNAME_START_POSITION - Static variable in class protocolP2P.RatioResponse
    +
     
    +
    HOSTNAME_START_POSITION - Static variable in class protocolP2P.Register
    +
     
    +
    HOSTNAME_START_POSITION - Static variable in class protocolP2P.Unregister
    +
     
    +
    HOSTNAMES_START_POSITION - Static variable in class protocolP2P.UpdateRatio
    +
     
    +
    hostnameServer - Variable in class gui.ClientP2PGUI
    +
     
    +
    hostnameTracker - Variable in class gui.ClientP2PGUI
     
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index-files/index-9.html b/doc/javadoc/index-files/index-9.html index 26b69df..0eee33f 100644 --- a/doc/javadoc/index-files/index-9.html +++ b/doc/javadoc/index-files/index-9.html @@ -1,52 +1,37 @@ - + - -L-Index - - + +I-Index + - - - - - - - + -
    - -
    -
    -
    A B C D E F G I L M N P R S T V W 
    All Classes All Packages +
    A B C D E F G H I J L M N O P R S T U V W  -

    L

    +

    I

    -
    LIST_REQUEST - protocolP2P.RequestResponseCode
    +
    inetAddress - Variable in class tools.HostItem
     
    -
    LIST_RESPONSE - protocolP2P.RequestResponseCode
    +
    init() - Method in class clientP2P.ClientDownload
    +
    +
    Initialize infos about file to download (size, hash512sum, partslist to dl).
    +
    +
    initComponents() - Method in class gui.ArgumentsGen
    +
    +
    This method is called from within the constructor to initialize the form.
    +
    +
    initComponents() - Method in class gui.DownloadSelectionGen
    +
    +
    This method is called from within the constructor to initialize the form.
    +
    +
    initComponents() - Method in class gui.ErrorFrame
    +
    +
    This method is called from within the constructor to initialize the form.
    +
    +
    initDirectoriesAndLoggers() - Method in class clientP2P.ClientP2P
    +
    +
    Initialize loggers if directories and logger are null, + else fail silently.
    +
    +
    initDirectoriesAndLoggers() - Method in class gui.ClientP2PGUI
    +
    +
    Initialize loggers if directories and logger are null, + else fail silently.
    +
    +
    initDownloader(String) - Method in class clientP2P.ClientManagement
    +
    +
    Initialize downloader
    +
    +
    initDownloader(String) - Method in class clientP2P.ClientManagementTCP
    +
    +
    Initialize downloader
    +
    +
    initDownloader(String) - Method in class clientP2P.ClientManagementUDP
    +
    +
    Initialize downloader
    +
    +
    initFileList() - Method in class clientP2P.ClientInterfaceCLI
    +
    +
    Initialize file list
    +
    +
    initHostList() - Method in class clientP2P.ClientInterfaceCLI
    +
    +
    Initialization of hostList with retry in failure
    +
    +
    initHostList() - Method in class clientP2P.ClientManagement
    +
    +
    Initialize hostList from tracker
    +
    +
    initHostList() - Method in class gui.ClientInterfaceGUI
    +
    +
    Initialization of hostList with retry in failure
    +
    +
    initSha512() - Method in class serverP2P.FileWatcher
    +
    +
    Init sha512 map.
    +
    +
    initThreads() - Method in class clientP2P.ClientDownload
    +
    +
    Starts threads for each server in hostList.
    +
    +
    InternalError - Exception in localException
     
    -
    LOAD_REQUEST - protocolP2P.RequestResponseCode
    +
    InternalError() - Constructor for exception localException.InternalError
     
    -
    LOAD_RESPONSE - protocolP2P.RequestResponseCode
    +
    InternalRemoteError - Exception in remoteException
     
    -
    LoadRequest - Class in protocolP2P
    -
    -
    Representation of payload for load request.
    -
    -
    LoadRequest(String) - Constructor for class protocolP2P.LoadRequest
    +
    InternalRemoteError() - Constructor for exception remoteException.InternalRemoteError
    +
     
    +
    isPortInRange(int) - Method in class tools.PortRange
    -
    Constructor (typically used by the server) with a filename parameter.
    +
    test if port given correspond a range : registered ports, can be used without superuser privileges
    -A B C D E F G I L M N P R S T V W 
    All Classes All Packages
    -
    - diff --git a/doc/javadoc/index.html b/doc/javadoc/index.html index d985a28..41c2a9f 100644 --- a/doc/javadoc/index.html +++ b/doc/javadoc/index.html @@ -1,180 +1,75 @@ - + - -Overview - - - - - - - - - - - - - - - -
    - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Packages 
    PackageDescription
    clientP2P 
    exception 
    protocolP2P 
    remoteException 
    serverP2P 
    tools 
    -
    -
    -