Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. We did tasks 1-5 and had no comments
  2.  
  3. task 6:
  4. 'HttpServer' class, Main():
  5. Takes port as argument, tries to listen, prints if connection accepted. Handles Http request message
  6. 'httpRequestHandler' class, processRequest():
  7. Takes bufferedReader and prints. If it's empty string, breaks.
  8. If it's a GET request and file exist prints specifications of file, if it's not prints 404
  9. error message.
  10.  
  11. Task 7:
  12. We were able to access our test file via PC browser; we decided not to do part b anc c because of lack of time.
  13.  
  14. Task 8-10:
  15. Server.c:
  16. Takes a port as argument, listens and prints message.
  17. Client.c:
  18. First argument; hostname
  19. Second argument; port
  20.  
  21. Tasks 11-15:
  22. Cherry as server and client: Successful
  23. e-learning as server and client: Successful
  24. Cherry as server, e-learning as client: Successful
  25. e-learning as server, cherry as client: Successful
  26.  
  27. Task 16:
  28. We managed to kill the processes
  29.  
  30. Task 17:
  31. We used WinSCP to copying file Linux->PC, vice-versa
  32.  
  33.  
  34. Onur YURTERI
  35. Zofia GRONDZIOWSKA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement