File tree 9 files changed +60
-23
lines changed
9 files changed +60
-23
lines changed Original file line number Diff line number Diff line change 1
1
sample :
2
2
description : BSD Sockets big HTTP download example
3
3
name : big_http_download
4
+ common :
5
+ filter : TOOLCHAIN_HAS_NEWLIB == 1
6
+ harness : net
7
+ min_ram : 32
8
+ min_flash : 128
9
+ tags : net socket
4
10
tests :
5
11
sample.net.sockets.big_http_download :
6
- filter : TOOLCHAIN_HAS_NEWLIB == 1
7
- harness : net
8
- min_ram : 32
9
- min_flash : 128
10
- tags : net socket
12
+ extra_configs :
13
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=y
14
+ sample.net.sockets.big_http_download.posix :
15
+ filter : and not CONFIG_NET_SOCKETS_OFFLOAD
16
+ extra_configs :
17
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=n
18
+ - CONFIG_POSIX_API=y
Original file line number Diff line number Diff line change 11
11
12
12
#include "mbedtls/md.h"
13
13
14
- #ifndef __ZEPHYR__
14
+ #if !defined( __ZEPHYR__ ) || defined( CONFIG_POSIX_API )
15
15
16
16
#include <netinet/in.h>
17
17
#include <sys/socket.h>
Original file line number Diff line number Diff line change 1
1
sample :
2
2
description : BSD Sockets API dumb HTTP server example
3
3
name : socket_dumb_http_server
4
+ common :
5
+ filter : TOOLCHAIN_HAS_NEWLIB == 1
6
+ harness : net
7
+ min_ram : 32
8
+ min_flash : 96
9
+ tags : net socket
4
10
tests :
5
11
sample.net.sockets.dumb_http_server :
6
- filter : TOOLCHAIN_HAS_NEWLIB == 1
7
- harness : net
8
- min_ram : 32
9
- min_flash : 96
10
- tags : net socket
12
+ extra_configs :
13
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=y
14
+ sample.net.sockets.dumb_http_server.posix :
15
+ filter : and not CONFIG_NET_SOCKETS_OFFLOAD
16
+ extra_configs :
17
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=n
18
+ - CONFIG_POSIX_API=y
Original file line number Diff line number Diff line change 8
8
#include <stdlib.h>
9
9
#include <errno.h>
10
10
11
- #ifndef __ZEPHYR__
11
+ #if !defined( __ZEPHYR__ ) || defined( CONFIG_POSIX_API )
12
12
13
13
#include <netinet/in.h>
14
14
#include <sys/socket.h>
Original file line number Diff line number Diff line change 2
2
description : BSD Sockets API TCP echo server sample
3
3
using non-blocking sockets
4
4
name : socket_echo_async
5
+ common :
6
+ filter : TOOLCHAIN_HAS_NEWLIB == 1
7
+ harness : net
8
+ platform_whitelist : qemu_x86
9
+ tags : net socket
5
10
tests :
6
11
sample.net.sockets.echo_async :
7
- harness : net
8
- platform_whitelist : qemu_x86
9
- tags : net socket
12
+ extra_configs :
13
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=y
14
+ sample.net.sockets.echo_async.posix :
15
+ filter : and not CONFIG_NET_SOCKETS_OFFLOAD
16
+ extra_configs :
17
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=n
18
+ - CONFIG_POSIX_API=y
Original file line number Diff line number Diff line change 9
9
#include <errno.h>
10
10
#include <stdlib.h>
11
11
12
- #ifndef __ZEPHYR__
12
+ #if !defined( __ZEPHYR__ ) || defined( CONFIG_POSIX_API )
13
13
14
14
#include <netinet/in.h>
15
15
#include <sys/socket.h>
Original file line number Diff line number Diff line change 9
9
#include <errno.h>
10
10
#include <stdlib.h>
11
11
12
- #ifndef __ZEPHYR__
12
+ #if !defined( __ZEPHYR__ ) || defined( CONFIG_POSIX_API )
13
13
14
14
#include <netinet/in.h>
15
15
#include <sys/socket.h>
16
+ #include <sys/select.h>
16
17
#include <arpa/inet.h>
17
18
#include <unistd.h>
18
19
#include <fcntl.h>
Original file line number Diff line number Diff line change 1
1
sample :
2
2
description : BSD Sockets API HTTP GET example
3
3
name : socket_http_get
4
+ common :
5
+ filter : TOOLCHAIN_HAS_NEWLIB == 1
6
+ harness : net
7
+ min_ram : 32
8
+ min_flash : 80
9
+ tags : net socket
4
10
tests :
5
11
sample.net.sockets.http_get :
6
- filter : TOOLCHAIN_HAS_NEWLIB == 1
7
- harness : net
8
- min_ram : 32
9
- min_flash : 80
10
- tags : net socket
12
+ extra_configs :
13
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=y
14
+ # Forcibly defines CONFIG_POSIX_API, which is incompatible with
15
+ # CONFIG_NET_SOCKETS_POSIX_NAMES.
16
+ platform_exclude : cc3220sf_launchxl
17
+ sample.net.sockets.http_get.posix :
18
+ filter : and not CONFIG_NET_SOCKETS_OFFLOAD
19
+ extra_configs :
20
+ - CONFIG_NET_SOCKETS_POSIX_NAMES=n
21
+ - CONFIG_POSIX_API=y
Original file line number Diff line number Diff line change 7
7
#include <stdio.h>
8
8
#include <stdlib.h>
9
9
10
- #ifndef __ZEPHYR__
10
+ #if !defined( __ZEPHYR__ ) || defined( CONFIG_POSIX_API )
11
11
12
12
#include <netinet/in.h>
13
13
#include <sys/socket.h>
You can’t perform that action at this time.
0 commit comments