Question: Hello I need to submit this exercise until the end of the day of the 1 8 th of may. I have to write a
Hello I need to submit this exercise until the end of the day of the th of may.
I have to write a code using Language C Fedora Linux If requested I insert also my student number:
I also insert this code sent by the professor to check if the code works correctly:
#binbash
if $# eq ; then
echo 'Utilizao: $nmerodeestudante'
exit
fi
CFILES$echo e excltc
exsrvc
excltc
exsrvc
excltc
exsrvc
excltc
exsrvc
exac
exbc
OIFS$IFS"
IFS$
for file in $CFILES
do
ls $file &devnull echo Ficheiro $file no encontrado.
execfile$filec
ls $execfile &devnull && grep $ $execfile &devnull echo Verifique se faz a impresso solicitada em $file echo Ficheiro $execfile no encontrado.
done
IFS$OIF"
Here it is the exercise:
Exercise
a Implement a clientserver application using TCPIP based communication according to the
following protocol:
After establishing the connection to the server, the client sends the contents of the
file whose name is specified as the first argument of the command line.
Upon accepting the connection, the server should write all the received data ie
the file contents sent by the client to a temporary file. The temporary file is created
and opened using the following sequence of instructions:
For an example on file manipulation, see the program provided in simpleclone.c
b Analogously to I ensure that the server can handle multiple clients simultaneously.
Thank you very much, regards
Lorenzo.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
