Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- We did tasks 1-5 and had no comments
- task 6:
- 'HttpServer' class, Main():
- Takes port as argument, tries to listen, prints if connection accepted. Handles Http request message
- 'httpRequestHandler' class, processRequest():
- Takes bufferedReader and prints. If it's empty string, breaks.
- If it's a GET request and file exist prints specifications of file, if it's not prints 404
- error message.
- Task 7:
- 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.
- Task 8-10:
- Server.c:
- Takes a port as argument, listens and prints message.
- Client.c:
- First argument; hostname
- Second argument; port
- Tasks 11-15:
- Cherry as server and client: Successful
- e-learning as server and client: Successful
- Cherry as server, e-learning as client: Successful
- e-learning as server, cherry as client: Successful
- Task 16:
- We managed to kill the processes
- Task 17:
- We used WinSCP to copying file Linux->PC, vice-versa
- Onur YURTERI
- Zofia GRONDZIOWSKA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement