Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de183ec

Browse files
author
Anton Yarkov
committed
Problems described
1 parent 27bc37c commit de183ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎networking/02 Astro-tcp-server/0_simple_blocker_server.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
// Compile:
1818
// gcc -std=c99 0_simple_blocker_server.c -o simple_blocker_server
1919

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+
2026
// Function read number of bytes and return it. It is necessary to use such a function for read,
2127
// because system call recv may return not full response and it will be necessary to read in loop.
2228
ssize_t receive_all(int fd, char *buf, size_t len)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /