Skip to content
Snippets Groups Projects
Commit 3759e501 authored by Ion-Dorinel FILIP (25005)'s avatar Ion-Dorinel FILIP (25005)
Browse files

Removed outdated TODO

parent 29bdae16
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ int receive_and_send(int connfd1, int connfd2, size_t len) { ...@@ -26,7 +26,7 @@ int receive_and_send(int connfd1, int connfd2, size_t len) {
int bytes_received; int bytes_received;
char buffer[len]; char buffer[len];
// TODO 2.1: Foloseste recv_all ca să primești exact len octeti de la connfd1 // Primim exact len octeti de la connfd1
bytes_received = recv_all(connfd1, buffer, len); bytes_received = recv_all(connfd1, buffer, len);
// S-a inchis conexiunea // S-a inchis conexiunea
if (bytes_received == 0) { if (bytes_received == 0) {
...@@ -34,7 +34,7 @@ int receive_and_send(int connfd1, int connfd2, size_t len) { ...@@ -34,7 +34,7 @@ int receive_and_send(int connfd1, int connfd2, size_t len) {
} }
DIE(bytes_received < 0, "recv"); DIE(bytes_received < 0, "recv");
// TODO 2.2: Foloseste send_all ca sa trimiti mesajul catre connfd2 // Trimitem mesajul catre connfd2
int rc = send_all(connfd2, buffer, len); int rc = send_all(connfd2, buffer, len);
if (rc <= 0) { if (rc <= 0) {
perror("send_all"); perror("send_all");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment