* C program to implement stop and wait protocol*/ Printf('\n%c - Enter ACK(1 for +ve, 0 for -ve) :',rec) ĭefault : printf('\n Invalid Selection') Printf('\n\n Enter the operation code : ') Ĭase 1 : printf('\n Enter the Message \n ') Ĭase 2 : printf('\n Receiver \t Press Escape to quit\n\n') * Stop and Wait Protocol ( Flow Control ) */