Skip to content

Commit aced06a

Browse files
committed
samples: net: echo_service: Fix documentation
Clarify the documentation in the README.rst file. Also remove the obsolete comment from main.c as it is no longer correct. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 7d34ad5 commit aced06a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

samples/net/sockets/echo_service/README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
Overview
88
********
99

10-
The sockets/echo_service sample application for Zephyr implements a TCP echo
11-
server supporting both IPv4 and IPv6 and using a BSD Sockets compatible API.
10+
The sockets/echo_service sample application for Zephyr implements a TCP and UDP
11+
echo server supporting both IPv4 and IPv6 and using a BSD Sockets compatible API.
1212

1313
The purpose of this sample is to show how to use socket service API.
1414
The socket service is a concept where many blocking sockets can be listened by

samples/net/sockets/echo_service/src/main.c

-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ static void tcp_service_handler(struct net_socket_service_event *pev)
3838
{
3939
static char buf[1500];
4040

41-
/* Note that in this application we receive / send data from
42-
* system work queue. In proper application the socket reading and data
43-
* sending should be done so that the system work queue is not blocked.
44-
* It is possible to create a socket service that uses own work queue.
45-
*/
4641
receive_data(false, pev, buf, sizeof(buf));
4742
}
4843

0 commit comments

Comments
 (0)