UDP Server and Client & Server application in C, stop and wait flow control, error checking