From c85047b7f7a7abd374ead4f955724b16a8d2ab4d Mon Sep 17 00:00:00 2001 From: Wang Yuyang Date: Sat, 20 Nov 2021 16:38:31 +0800 Subject: [PATCH] comments --- README.md | 41 ++++++++++++++++++- ...M_679a9bc0-c62e-4df6-a779-b9cb246a9f02_1.a | 5 +++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 download/d71cf18f-bf83-4fcb-9503-51fca03d4f98_FROM_679a9bc0-c62e-4df6-a779-b9cb246a9f02_1.a diff --git a/README.md b/README.md index 6d6490e..0094b84 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,40 @@ -# Java RMI P2P project +# P2P_Project + +## Introduction + +This application has two versions. +1. Console version +2. GUI version + +You can use any of them up to your choice. + +## Run + +### Console Version + +Go the source code directory, run ServerMain.java and ClientMain.java + +Commands: + +``` +i Get the information of the peer +r Register a resource with filename (File need to be in res folder) +l Lookup a resouce with hash +d Download a file with hash +``` + +### GUI Version + +Go to artifacts directory, run the jar file in ClientGUI\_jar and ServerGUI\_jar + +```java +java -jar P2P_Project.jar + +``` + +**PLEASE USE JAVA 1.8 because of JavaFX or you can use Console Version** + +1. Start the server by hitting the start button +2. Start the peer by hitting the connect button +3. Start register files or download files -![res/demo.png](res/demo.png) \ No newline at end of file diff --git a/download/d71cf18f-bf83-4fcb-9503-51fca03d4f98_FROM_679a9bc0-c62e-4df6-a779-b9cb246a9f02_1.a b/download/d71cf18f-bf83-4fcb-9503-51fca03d4f98_FROM_679a9bc0-c62e-4df6-a779-b9cb246a9f02_1.a new file mode 100644 index 0000000..c89a354 --- /dev/null +++ b/download/d71cf18f-bf83-4fcb-9503-51fca03d4f98_FROM_679a9bc0-c62e-4df6-a779-b9cb246a9f02_1.a @@ -0,0 +1,5 @@ +hahaha +================ +This File is 1.a +================ +