samples: net: socket_echo: Add sample.yaml, update for net_app refactor
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
0c5ef71c07
commit
52f8cde07b
2 changed files with 10 additions and 3 deletions
8
samples/net/socket_echo/sample.yaml
Normal file
8
samples/net/socket_echo/sample.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
sample:
|
||||
description: BSD Sockets API TCP echo server sample
|
||||
name: socket_echo
|
||||
tests:
|
||||
- test:
|
||||
build_only: true
|
||||
platform_whitelist: qemu_x86
|
||||
tags: net
|
|
@ -19,12 +19,11 @@
|
|||
|
||||
#include <net/socket.h>
|
||||
#include <kernel.h>
|
||||
#include <net_sample_app.h>
|
||||
#include <net/net_app.h>
|
||||
|
||||
void init_net(void)
|
||||
{
|
||||
int ret = net_sample_app_init("socket_echo", NET_SAMPLE_NEED_IPV4,
|
||||
K_SECONDS(3));
|
||||
int ret = net_app_init("socket_echo", NET_APP_NEED_IPV4, K_SECONDS(3));
|
||||
|
||||
if (ret < 0) {
|
||||
printf("Application init failed\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue