Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 program that is able to receive text messages through UDP port and print
them, as well as the senders IP address and port number, on the screen.
b Implement a program that allows sending messages to the program described in point
until it is finished with the combination ctrlc
c Check that the initial program can receive sequences of messages from different clients
without resorting to any type of multitasking mechanism creation of new processes or
threads
d The maximum size of IPv packets is bytes. However, in general, the connection
layer eg the ethernet network does not allow sending packets of this length. The IPv
protocol supports a fragmentation mechanism in order to overcome this limitation
However, this mechanism has some disadvantages so in Linux, it is disabled by default for
UDP. Check, by trial and error it can also be based on the information provided by the
ifconfig command the maximum size that messages can have to be sent successfully.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started