Guide to use this client-server application
->Steps to run the application of client-server:
- First run server_main.py file.
- Next run the client.py file in other terminal for processing the requests required for the client.
- If you are first time running this application register, else you can login directly.
->Steps to run the application of client-server for New(optimized):
- First run server.py file.
- Next run the client.py file in other terminal for processing the requests required for the user.
THESE ARE THE COMMANDS THAT CAN BE REQUESTED BY THE CLIENT TO THE SERVER:
-
change_folder : The current working directory to the given directory.If the of the directory does not exist then error will be displayed.
-
list: This command lists the files present in the current working directory and also with size and date of modification for each file.
-
read_file: This command reads the file in the current working directory and prints first hundred characters and the clients again reads the file then it
again reads the file then it returns the next hundred words and continues until all the characters in the file are read. -
write_file: This writes the data into the given file by the client in the current working directory. If a given file does not exist then it creates a file and then writes in it.
-
create_folder: A new folder can be created by create_folder in current working directory. If already a folder exists with the given then an error is displayed.
-
register: A new user can be registered with a new register and . If the username or password already exists then it returns an error.
-
login: The login and command can be used by the client to login into the server. If the given username or password does not match then it returns an error.
-
Quit: The user can quit from the server using this command.