/* Protocol 8 (a more efficient version of Protocol 7) */ #define MAX_SEQ 7 /* should be 2^n - 1 */ typedef enum {frame_arrival, cksum_err, timeout, network_layer_ready, ack_timeout} event_type; #include "protocol.h" void sender8(void) { } void receiver8(void) { }