We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27bc37c commit de183ecCopy full SHA for de183ec
networking/02 Astro-tcp-server/0_simple_blocker_server.c
@@ -17,6 +17,12 @@
17
// Compile:
18
// gcc -std=c99 0_simple_blocker_server.c -o simple_blocker_server
19
20
+// Problems with implementation:
21
+// - Receive_all exists, but no Send_all
22
+// - No timer for interrupting connection
23
+// - Should be output to syslog instead of printf
24
+// - errno not used
25
+
26
// Function read number of bytes and return it. It is necessary to use such a function for read,
27
// because system call recv may return not full response and it will be necessary to read in loop.
28
ssize_t receive_all(int fd, char *buf, size_t len)
0 commit comments