Problem 1
Try example client and
server .
Modify the example server to print all incoming packets.
Modify the client to send a series of packets (say 20)
as quick as it can. Each packet in the series should
contain a serial number for easy identification.
Check if in our network packets arrive in order (and
if there is packet loss).
Compare source code to example server given in
'getaddrinfo' man page (note: look at English version
of the man page).
Problem 2
Modify example client and server to transfer a file.
Divide file into fragments of fixed maximal size
(choose it between 100 and 1500 bytes).
After receiving a packet server should send a confirmation.
After sending a packet client should wait for confirmation.
Check if this approach works (it can fail due to packet less)
and what transsmision speed is possible.