Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Florian Fischer
emper-echo-server
Commits
ad3888b2
Commit
ad3888b2
authored
Nov 27, 2020
by
Florian Fischer
Browse files
modernize cpp echo server
parent
f6559524
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/emper-echo-server.cpp
View file @
ad3888b2
...
@@ -28,6 +28,7 @@ void client_func(void* arg) {
...
@@ -28,6 +28,7 @@ void client_func(void* arg) {
int
client_fd
=
*
(
int
*
)
arg
;
int
client_fd
=
*
(
int
*
)
arg
;
free
(
arg
);
free
(
arg
);
// NOLINTNEXTLINE(modernize-avoid-c-arrays)
char
buf
[
BUF_MAX
];
char
buf
[
BUF_MAX
];
for
(;;)
{
for
(;;)
{
#ifdef USE_ASYNC_IO
#ifdef USE_ASYNC_IO
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment