Question: This problem involves implementing a remote shell tool using the standard model for network application, Client-Server model. You will write a server process that will

This problem involves implementing a remote shell tool using the standard model for network application, Client-Server model.

You will write a server process that will be started on a Linux computer system. The server process will initialize itself and go to sleep waiting for a client process to conduct it, requesting for running and giving the output for a command.

The client process is started, either on the same machine or on soem other system that is connected to the server's system with a network. You will use 4.3 BSD Sockets and the TCP/IP protocol to communicate between client and server.

Server program: The server program must be executed in the background. It goes to sleep until a client wants to connect on that specific address. When the server process has finished providing its service to the client process, it goes back to sleep waiting for the next client request to arrive. Example command: ./server&

This is an example command for execution of the server program on any Linux machines, in background mode (&).

Client program: A unique PORT number will be used on which you will run your program. (The port number I need to use is 12008). For the client, you can telnet to the machine running your server process using its IP address and the port number. Example: 131.230.133.147:12008

You can also write a separate client program. For the client program, name of the host machine running the server program must be passed to the client on the command line.

The server needs to run on a linux machine and the client can be conected from either a Linux or Windows machine. Also the server should acept multiple client connections simulataneously.

Here's the server and client side code I have so far, let me know if there's a better version than this. (It needs to be in C).

I would appreciate it if you also outlined steps for the Linux commands part, but I'm mainly asking for the server side and client side programs I would need. I appreciate all help I receive, thank you!

This problem involves implementing a remote shell tool using the standard model

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!