Starting from:

$30

COMP2560- Assignment 5 Solved

Use socket to write a client/server application to simulate the basic functionality of secure shell. Once the client is connected to the server, it can keep sending shell commands to the server. For each command, the server will return the result of executing the shell command. 

 

•       The server and client programs can be run on different machines. 

•       The server program is started first, waiting for client to connect. 

•       When the server program is terminated with CTRL-C, the client program is also terminated. 

•       When the client program is terminated with CTRL-C, the server program will wait for the next connection from client. 

 

Simplification:

 

•       The shell commands from the client are simple ones without arguments.

•       The commands from the client can be executed on the server side by different shell processes.

 

 

Sample run:

 

server program - executed on CS server (alpha)
 

 

 

 

60-256 System Programming                                                                                                            Dr. Chen

 

 

client program - executed on a local machine with wifi connection: cs.uwindsor.ca

 

 

 

 

 

Marking Scheme:

•       0.5 logically clear, follow all instructions and correctly use sockets

•       0.5 successfully compile

•       0.5 pass some tests

•       0.5 pass all tests

More products