Overview
On the Event Day, which is
Wednesday, March 19-th
have your server ready to be part of an in-class bakeoff. We will attempt to pass a packet around from each of the servers from each of the students in class.
Prepare by having your AWS ready with both the pass-around software and the SHTML webserver. We will simply redirect stdout to the netbounce-log.txt file.
Modify index.shmtl
Replace /var/www/ubuntu/index.shtml this index.shtml
Edit the file to include, where indicated,
Optional: Use SSI Directive #echo var=SERVER_NAME to include the servername.
Modify passaround.c
Start and AWS instance and have it running,
The run target of this makefile will pipe the stdout of passaround to the passaround log file,
run: passaround cat /dev/null > $W @echo -n "ready to for the bake-off at time " >> $W date >> $W ./passaround -v -n 0 ${PORT} >> $Wthus be visible at http://_your_public_ip_address.
However you will need to flush the write buffers after each printf. Add the following code after every printf,
fflush(NULL);
Also, make sure your SecurityGroup is open for both HTTP (port 80) and the bounce protocol (UDP 3333).
Author: Burton Rosenberg
Created: 16 March 2025
Last Update: 16 March 2025