# P2P-JAVA-PROJECT version 1 (Protocol for step 1) All messages begins with `P2P-JAVA-PROJECT VERSION 1.0\n` (this version of the protocol). ## Client messages - `LIST\n`: ask the server to list files from server root directory - `DOWNLOAD\n\n`: ask the server to download file from server root directory. Only one filename is allowed per request. ## Server responses - The response to `LIST` request is in the format `LIST\n\n\n[…]\n\n` - The response to `DOWNLOAD` request is `LOAD \n` or `NOT FOUND\n` if the file doesn't exists. - The server send a `PROTOCOL ERROR\n` message if it doesn't understands what the client sent.