Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 KB | None | 0 0
  1. Technologies: C#, ASP.NET, ADO.NET, WEB SERVICES, NETWORKING, Xml Or Json, Threading, IO, Reflection.
  2.  
  3. 1. General
  4. In this project you will build a peer to peer (p2p) system for sharing files between users, across IP networks (see Appendix 1).
  5. The system will contain the following modules:
  6. A. WPF application. This is the application that the end users should use with binding data.
  7. B. Mediation Server – a collection of WCF or Web Service for handling client's requests.
  8. C. P2P Upload/Download files.
  9. D. Administrator Management System – ASP.NET Portal for administrative tasks, and user's registration.
  10. E. DAL (Data Access Layer) - A Class library for handling DB operations.
  11. F. DB (SQL SERVER) - store system and users information.
  12. G. Implementation of simple reflection with attribute;
  13.  
  14.  
  15. 2. Application specification
  16. 2.1 Peer to peer client/server (30%)
  17. 2.1.1 WPF Application with Xaml resource.
  18. 2.1.2 The client application will have a configuration file for local port (port 8005 /port 8006 default -IO), Server IP Address, username, password, full path of the public folder for published files, and full path of the folder for downloaded files. The configuration file will be edit by GUI interface. The name of this file is: MyConfig.xml
  19. 2.1.3 When you start the client, it will check for a valid configuration file. If there is a problem – a message will appear.
  20. 2.1.4 If the Configuration file is OK, open a socket and wait for incoming request.
  21. 2.1.5 If the Configuration file is OK, connect to the server and sign in the user with a list of files to share.
  22. 2.1.6 When you close the client, it will sign out. Don't forget to dispose all resources, on closing Client, Server.
  23. 2.1.7 The user can search for a file name. The application will call a method on the server. (See 2.2.2). *means get all available files.
  24. 2.1.8 If the answer from the server is positive, the user will get the file name, size and number of resource. After selecting his choice, the client will automatically connect to the remote peer and start downloading the file.
  25. 2.1.9 The client application will show the current status of each incoming / outgoing file transfer.
  26. 2.1.10 After a successful file download, the client will show the total time, the file size, and the bit rate (Kbps).
  27. 2.1.11 After a successful file download, the client become one more resource for the file.
  28. 2.1.12 You decide about the format of the Xml or Jason. Extra data is allowed.
  29. 2.1.13 One download file has to be dll. The dll enclose at least two classes.
  30. The classes will be launch at the client, with reflection technology according to its Attribute. The detail of the classes can be supply in the configure file, or with any other way.
  31. 2.2 Mediation Server -A collection of (WCF or Sockets or Web Service) Services for handling client's requests. (30%)
  32.  
  33. 2.2.1 Write a web service for client sign-in. this method receives a string in Xml or Json) format with Username, Password, IP, PORT, and a list of files (files name and size). If username and password are valid, the server will update the current users and current available files.
  34. 2.2.2 Write a web service for client file request. This method receives a string in XML/Jason format (Or other technology). If username and password are valid, and the file is found, the server will return requested file name (or list) with the size and how many users own it. If the file does not exist, the server will return a negative answer to the client.
  35. 2.2.3 Write a web service for client sign-out. This method receives a string in XML format with Username, Password, and marks this user as unavailable, as well as all his files.
  36.  
  37. 2.3 Web Portal - Administrator Management System (25%)
  38. 2.3.1 Write a web form for showing all files available in the system, with a search button. In this page you should show the number of active users, total users, total files.
  39. 2.3.2 Write a web form with registration page – a page for registering a new user.
  40. 2.3.3 Write a web form for administrator, for enable / disable / delete/ update users.
  41. 2.3.4 Write a menu page for this portal. This will be the Homepage of the portal. The name of this file is HomePage.htm (simple html page).
  42.  
  43. 2.4 DAL – A class library for DB operations. (15%)
  44. 2.4.1 All db operations in the web-service and in the portal will be handled in that module (dll).
  45. 2.4.2 Write a class for each table in the db, and implement read / write public methods.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement