Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python File Transfer

CPSC 471

Project Members:

      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

Programming Language:

Python

Requirements to run

Python3

How to Execute the Program:

Server.py Execution:

  1. Navigate to the directory containing server.py.
  2. Open a terminal in this directory.
  3. Run the command python3 server.py {insert port number}.
  4. 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.

Client Execution:

  1. Ensure the server is running as described above.
  2. Navigate to the directory containing client.py.
  3. Open a separate terminal in this directory.
  4. Run the command python3 client.py {insert port number}.
  5. 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.

Notes:

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages