[Solved] CSCI3240 Computer Systems Project 3

$25

File Name: CSCI3240_Computer_Systems_Project_3.zip
File Size: 329.7 KB

SKU: [Solved] CSCI3240 Computer Systems Project 3 Category: Tag:
5/5 - (1 vote)

Write a C program that uses the socketpair system call to create a pair of sockets, and uses the fork system call to create a childheavy-weight process.

The child process should invoke the server function provided for you in p3server.c in the public directory. Note that that program depends onvalues being set in the environment. My tests will set those variables prior to executing your program.

The parent process should act as a client and conform to the message-passing interface defined by the server and should exchange appropriate messagesaccordingly. Details will be discussed in class.

Each time the child process receives a message from the server, print:

CLIENT recvd len %d msg :%s:

where %d and %s are replaced by the values actually received.

TURNIN info:You should submit a tar file of a directory which contains all of the required files (makefile, C source files, header files, etc).Sample tar command to create a tar file from a dir:tar cvf p3.tar ./p3dir ## do *NOT* use full pathname of the dirAfter un-tarring the project, I will cd to the dir containing it and type:rm -f p3rm -f *.omakeIt should build an executable named p3.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSCI3240 Computer Systems Project 3[Solved] CSCI3240 Computer Systems Project 3
$25