diff --git a/lab6/client.c b/lab6/client.c index 32241702721c8fc86a9d1af4a6781b4bb4b24be3..06fe57ac91918bd39218881d238d010c73dcf392 100644 --- a/lab6/client.c +++ b/lab6/client.c @@ -51,9 +51,9 @@ void send_file_start_stop(int sockfd, struct sockaddr_in server_address, d.seq = seq; seq++; - /* TODO 1.2: Send the datagram. */ + /* TODO 1.1: Send the datagram. */ - /* TODO 1.3: Wait for ACK before moving to the next datagram to send. + /* TODO 1.2: Wait for ACK before moving to the next datagram to send. If timeout or wrong seq number, resend the datagram. */ if (n == 0) // end of file @@ -74,8 +74,7 @@ void send_file_go_back_n(int sockfd, struct sockaddr_in server_address, int seq = 1; while (1) { - /* TODO: 1.1 Read all the data of the and add it as datagrams in - * datagram_queue */ + /* Read all the data of the and add it as datagrams in datagram_queue (window) */ /* Reads the content of a file */ struct seq_udp *d = malloc(sizeof(struct seq_udp)); DIE(d == NULL, "malloc");