Thread View: news.software.misc
1 messages
1 total messages
Started by sat
Sat, 08 Dec 2001 20:47
Network Programming Need Help
Author: sat
Date: Sat, 08 Dec 2001 20:47
Date: Sat, 08 Dec 2001 20:47
53 lines
2793 bytes
2793 bytes
Please help me on the socket programming. This is the statement Problem Description: Write two separate programs, client.c and server.c, to implement a simplified version of FTP. The server process should work in connection-oriented and concurrent-server mode. You need to first start the server process in a server host and publish its host name and port number. A user on another host can then issue a command like %myftp server-host-name server-port-number to download a file from or upload a file to the server. After accepting the above myftp command, the client process should responds with prompt ftp>, waiting for user’s ftp commands. Requirements: 1) myftp is so named as to tell from the standard ftp command. 2) You need to consider the following ftp commands: ftp>put filename to upload a file named filename to the server, ftp>get filename to download a file named filename from the server, ftp>ls to list the files under the present directory of the server, ftp>cd to change the present directory of the server, ftp>pwd to display the present working directory of the server ftp>!ls to list the files under the present directory of the client, ftp>!pwd to display the present working directory of the client, ftp>!cd to change the present directory of the client, ftp>quit to quit from ftp session and return to Unix prompt. 3) Other commands except the above ones are considered as invalid ftp commands. When a user inputs an invalid ftp command, your program should respond with “An invalid FTP command.” 4) If command ls is followed by invalid options, or if cd is followed by a non-existed directory, your program should also respond with proper error message. 5) When a user puts or gets a non-existed file, your program should respond with “filename: no such file.”
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads