Logistics:
To
avoid congestion and slow down in machines used in hw4, we divide the machines
in to three groups. You will use one of the groups for your exercise
based on the last digit of your SS#.
Last digit of SS# | 0, 3, 6, 9 | 1,4,7 | 2,5,8 |
group of machines used for hw4 | wetterhorn, shavano, sanluis, redcloud | sanluis, redcloud, crestone, blanca | crestone, blanca, wetterhorn, shavano |
After finished your exercises, make sure you kill all client or server processes. Use control-c from the terminal window or "kill <processid>". You can find the process id by typing "ps aux". If we left too many of these processes running, these machines will become unbearably slow.
if
(debug)
printf("packet
%d id=%d time=%d.%d, bw=%d\n",
i,
msg.id, msg.tv.tv_sec, msg.tv.tv_usec, msg.bw);
if
(sendto(#######) < 0)
perror("sending
datagram message");
sleep(2);
}
http://cs.uccs.edu/~<login>/cs522/project/socket/altbit/absend.c
http://cs.uccs.edu/~<login>/cs522/project/socket/altbit/absend.txt
http://cs.uccs.edu/~<login>/cs522/project/socket/altbit/abrcv.txt
http://cs.uccs.edu/~<login>/cs522/project/socket/altbit/abrcv.txt
http://cs.uccs.edu/~<login>/cs522/project/socket/ABWPlot/measure.c
http://cs.uccs.edu/~<login>/cs522/project/socket/ABWPlot/screendump.png or .doc (this contains the image of screendump).