10) { fwrite(STDOUT, "Failed to connect.\n"); exit(1); } sleep(1); fwrite(STDOUT, "Waiting for a connection...\n"); goto start;