From 16f6f0d51ed04166287e6a0fc26fb2da8d6869d4 Mon Sep 17 00:00:00 2001 From: "Ion-Dorinel FILIP (25005)" <dorinel.filip@upb.ro> Date: Sun, 23 Mar 2025 01:14:29 +0000 Subject: [PATCH] Removed already done TODO --- lab6/client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lab6/client.c b/lab6/client.c index 3224170..06fe57a 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"); -- GitLab