CPSC 471
- Name: Christopher Mireles, Email: Napalashe@csu.fullerton.edu
- Name: Justin Gerard Perez, Email: justingp45@csu.fullerton.edu
- Name: Aidan Jahn, Email: nobody34@csu.fullerton.edu
- Name: Dereck Jimenez, Email: jimenezd@csu.fullerton.edu
- Name: Dylan Jaime, Email: djaime0@csu.fullerton.edu
Python
Python3
- Navigate to the directory containing
server.py. - Open a terminal in this directory.
- Run the command
python3 server.py {insert port number}. - The server will start and wait for connections on port {port_number}.
If you do not put a port number it will default to 1200 but it is reccomended to pick your own port.
- Ensure the server is running as described above.
- Navigate to the directory containing
client.py. - Open a separate terminal in this directory.
- Run the command
python3 client.py {insert port number}. - Use the following commands in the client application:
GET <filename>: To download a file from the server.PUT <filename>: To upload a file to the server.LS: To list the files in the server's directory.QUIT: To disconnect from the server.
The server has no files to start so you must perform a PUT to download the file on the server side. The GET will occur in an error message unless you have already sent a PUT operation to the server.
Ensure that both client.py and server.py are in directories that the executing user has read and write permissions for, as file operations are performed in these directories.
The server and client are set to connect over localhost (127.0.0.1), which means they should run on the same machine for testing purposes. In the file we have submitted there are two files that you can send back and forth.
The send_me.txt can be used to practice but you can put your own file if you wish.