Home
last modified time | relevance | path

Searched refs:sockets (Results 1 – 25 of 134) sorted by relevance

123456

/Zephyr-latest/drivers/modem/
Dmodem_socket.c157 if (cfg->sockets[i].id < cfg->base_socket_id) { in modem_socket_get()
167 cfg->sockets[i].sock_fd = zvfs_reserve_fd(); in modem_socket_get()
168 if (cfg->sockets[i].sock_fd < 0) { in modem_socket_get()
173 cfg->sockets[i].family = family; in modem_socket_get()
174 cfg->sockets[i].type = type; in modem_socket_get()
175 cfg->sockets[i].ip_proto = proto; in modem_socket_get()
176 cfg->sockets[i].id = (cfg->assign_id) ? (i + cfg->base_socket_id) : in modem_socket_get()
178 zvfs_finalize_typed_fd(cfg->sockets[i].sock_fd, &cfg->sockets[i], in modem_socket_get()
182 return cfg->sockets[i].sock_fd; in modem_socket_get()
192 if (cfg->sockets[i].sock_fd == sock_fd) { in modem_socket_from_fd()
[all …]
/Zephyr-latest/tests/bsim/net/
Dcompile.sh14 app=samples/net/sockets/echo_server conf_overlay=overlay-802154.conf compile
15 app=tests/bsim/net/sockets/echo_test conf_overlay=overlay-802154.conf compile
17 app=samples/net/sockets/echo_server conf_overlay=overlay-ot.conf compile
18 app=tests/bsim/net/sockets/echo_test conf_overlay=overlay-ot.conf compile
/Zephyr-latest/samples/net/sockets/echo_service/
DREADME.rst1 .. zephyr:code-sample:: sockets-service-echo
5 Implements a simple IPv4/IPv6 TCP echo server using BSD sockets and socket service API.
10 The sockets/echo_service sample application for Zephyr implements a TCP echo
14 The socket service is a concept where many blocking sockets can be listened by
16 of sockets. This saves memory as only one thread needs to be created in the
21 :zephyr_file:`samples/net/sockets/echo_service`.
32 Build the Zephyr version of the sockets/echo_service application like this:
35 :zephyr-app: samples/net/sockets/echo_service
50 sockets, and currently is only implemented to serve only one client connection
/Zephyr-latest/tests/net/socket/tls_ext/
DCMakeLists.txt12 ${ZEPHYR_BASE}/samples/net/sockets/echo_server/src/ca.der
18 ${ZEPHYR_BASE}/samples/net/sockets/echo_server/src/server.der
24 ${ZEPHYR_BASE}/samples/net/sockets/echo_server/src/server_privkey.der
32 ${ZEPHYR_BASE}/samples/net/sockets/echo_server/src/server.der
38 ${ZEPHYR_BASE}/samples/net/sockets/echo_server/src/server_privkey.der
/Zephyr-latest/samples/net/sockets/echo_async_select/
DREADME.rst1 .. zephyr:code-sample:: async-sockets-echo-select
5 Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and select()
10 The sockets/echo_async_select sample application for Zephyr implements an
12 with non-blocking sockets and a ``select()`` call. This is a variant of
13 the :zephyr:code-sample:`async-sockets-echo` sample.
16 :zephyr_file:`samples/net/sockets/echo_async_select`.
27 Build the Zephyr version of the sockets/echo_async application like this:
30 :zephyr-app: samples/net/sockets/echo_async_select
44 it. Unlike the :zephyr:code-sample:`sockets-echo` sample, this application
/Zephyr-latest/samples/net/sockets/socketpair/
DREADME.rst1 .. zephyr:code-sample:: sockets-socketpair
10 The sockets/socketpair sample application for Zephyr demonstrates a
12 connected UNIX-domain sockets. The pairs of sockets are created with
13 socketpair(2), as you might have guessed. Such sockets are compatible
15 is also to reinforce that it is possible to develop a sockets
19 :zephyr_file:`samples/net/sockets/socketpair`.
29 Build the Zephyr version of the sockets/echo application like this:
32 :zephyr-app: samples/net/sockets/socketpair
/Zephyr-latest/samples/net/sockets/echo/
DREADME.rst1 .. zephyr:code-sample:: sockets-echo
5 Implements a simple IPv4/IPv6 TCP echo server using BSD sockets.
10 The sockets/echo sample application for Zephyr implements a TCP echo
12 The purpose of this sample is to show how it's possible to develop a sockets
17 :zephyr_file:`samples/net/sockets/echo`.
28 Build the Zephyr version of the sockets/echo application like this:
31 :zephyr-app: samples/net/sockets/echo
45 sockets, and thus can serve only one client connection at time. After the
/Zephyr-latest/tests/net/lib/http_server/tls/
DCMakeLists.txt15 ${ZEPHYR_BASE}/samples/net/sockets/http_server/src/certs/ca_cert.der
21 ${ZEPHYR_BASE}/samples/net/sockets/http_server/src/certs/server_cert.der
27 ${ZEPHYR_BASE}/samples/net/sockets/http_server/src/certs/server_privkey.der
35 ${ZEPHYR_BASE}/samples/net/sockets/http_server/src/certs/server_cert.der
41 ${ZEPHYR_BASE}/samples/net/sockets/http_server/src/certs/server_privkey.der
/Zephyr-latest/samples/net/sockets/echo_async/
DREADME.rst1 .. zephyr:code-sample:: async-sockets-echo
5 Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and poll()
10 The sockets/echo-async sample application for Zephyr implements an
12 with non-blocking sockets and a ``poll()`` call. This is an extension of
13 the :zephyr:code-sample:`sockets-echo` sample. It's a more involved application,
18 :zephyr_file:`samples/net/sockets/echo_async`.
29 Build the Zephyr version of the sockets/echo_async application like this:
32 :zephyr-app: samples/net/sockets/echo_async
46 it. Unlike the above-mentioned :zephyr:code-sample:`sockets-echo` sample, this application
/Zephyr-latest/samples/net/sockets/net_mgmt/
DREADME.rst1 .. zephyr:code-sample:: sockets-net-mgmt
14 :zephyr_file:`samples/net/sockets/net_mgmt`.
31 :zephyr-app: samples/net/sockets/net_mgmt
40 :zephyr-app: samples/net/sockets/net_mgmt
/Zephyr-latest/samples/net/sockets/http_get/
DREADME.rst1 .. zephyr:code-sample:: sockets-http-get
2 :name: HTTP GET using plain sockets
5 Implement an HTTP(S) client using plain BSD sockets.
10 The sockets/http_get sample application for Zephyr implements a simple
12 sample is to show how it's possible to develop a sockets application
17 :zephyr_file:`samples/net/sockets/http_get`.
33 :zephyr-app: samples/net/sockets/http_get
51 :zephyr-app: samples/net/sockets/http_get
/Zephyr-latest/samples/net/sockets/can/
DREADME.rst5 Send and receive raw CAN frames using BSD sockets API.
23 :zephyr_file:`samples/net/sockets/can`.
37 :zephyr-app: samples/net/sockets/can
46 :zephyr-app: samples/net/sockets/can
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/
DREADME.rst5 Implement a simple HTTP server supporting simultaneous connections using BSD sockets.
10 The ``sockets/dumb_http_server_mt`` sample application for Zephyr implements a
20 :zephyr_file:`samples/net/sockets/dumb_http_server_mt`.
31 Build the Zephyr version of the sockets/dumb_http_server_mt application like
35 :zephyr-app: samples/net/sockets/dumb_http_server_mt
/Zephyr-latest/samples/net/sockets/http_client/
DREADME.rst1 .. zephyr:code-sample:: sockets-http-client
14 :zephyr_file:`samples/net/sockets/http_client`.
30 :zephyr-app: samples/net/sockets/http_client
43 :zephyr-app: samples/net/sockets/http_client
53 :zephyr_file:`samples/net/sockets/http_client/src/` directory.
76 :zephyr-app: samples/net/sockets/http_client
/Zephyr-latest/samples/net/sockets/websocket_client/
DREADME.rst1 .. zephyr:code-sample:: sockets-websocket-client
15 :zephyr_file:`samples/net/sockets/websocket_client`.
31 :zephyr-app: samples/net/sockets/websocket_client
44 :zephyr-app: samples/net/sockets/websocket_client
54 :zephyr_file:`samples/net/sockets/websocket_client/src/` directory.
82 :zephyr-app: samples/net/sockets/websocket_client
/Zephyr-latest/subsys/net/lib/sockets/
DKconfig17 int "Default processing priority for sockets"
83 The socket service can monitor multiple sockets and save memory
87 so that enough sockets entries can be serviced. This depends on
97 polls the sockets and calls the user supplied callback directly.
112 Set the internal stack size for the thread that polls sockets.
128 int "Default processing priority for TLS sockets"
131 Processing priority for TLS sockets. Should be lower than
196 DTLS sockets is disabled. In result, sendmsg() will only accept msghdr
256 int "Default processing priority for offloaded sockets"
259 Processing priority for offloaded sockets.
[all …]
/Zephyr-latest/samples/net/sockets/echo_server/
DREADME.rst1 .. zephyr:code-sample:: sockets-echo-server
16 :zephyr_file:`samples/net/sockets/echo_server`.
58 :zephyr-app: samples/net/sockets/echo_server
67 :zephyr-app: samples/net/sockets/echo_server
77 :zephyr-app: samples/net/sockets/echo_server
97 :zephyr-app: samples/net/sockets/echo_server
108 :zephyr:code-sample:`sockets-echo-client` enable establishing a secure connection
122 :zephyr-app: samples/net/sockets/echo_server
141 See the :zephyr:code-sample:`sockets-echo-client` sample documentation for an alternate
/Zephyr-latest/samples/net/sockets/dumb_http_server/
DREADME.rst5 Implement a simple, portable, HTTP server using BSD sockets.
10 The sockets/dumb_http_server sample application for Zephyr implements a
12 this sample is to show how it's possible to develop a sockets application
22 :zephyr_file:`samples/net/sockets/dumb_http_server`.
33 Build the Zephyr version of the sockets/echo application like this:
36 :zephyr-app: samples/net/sockets/dumb_http_server
/Zephyr-latest/doc/connectivity/networking/api/
Dsockets.rst49 sockets). For example, a call ``recv(sock, 1000, 0)`` may return 100,
53 The BSD Sockets API uses file descriptors to represent sockets. File
55 among sockets, files, special devices (like stdin/stdout), etc. Internally,
60 See :zephyr:code-sample:`sockets-echo-server` and :zephyr:code-sample:`sockets-echo-client`
70 and configure sockets with TLS protocol types, facilitating secure
72 mbedTLS library. Secure sockets implementation allows use of both TLS and DTLS
76 To enable secure sockets, set the :kconfig:option:`CONFIG_NET_SOCKETS_SOCKOPT_TLS`
86 secure sockets. See :c:func:`tls_credential_add` for more information.
141 Several samples in Zephyr use secure sockets for communication. For a sample use
142 see e.g. :zephyr:code-sample:`echo-server sample application <sockets-echo-server>` or
[all …]
/Zephyr-latest/samples/net/sockets/http_server/
DREADME.rst1 .. zephyr:code-sample:: sockets-http-server
24 :zephyr_file:`samples/net/sockets/http_server` directory:
28 * - :zephyr_file:`prj.conf <samples/net/sockets/http_server/prj.conf>`
31 …* - :zephyr_file:`ieee802154-overlay.conf <samples/net/sockets/http_server/ieee802154-overlay.conf…
34 * - :zephyr_file:`overlay-netusb.conf <samples/net/sockets/http_server/overlay-netusb.conf>`
41 $ west build -p auto -b <board_to_use> -t run samples/net/sockets/http_server
67 $ west build -b <board_to_use> -t sample_ca_cert samples/net/sockets/http_server
73 $ west build -t sample_server_cert samples/net/sockets/http_server
79 $ west build samples/net/sockets/http_server
/Zephyr-latest/doc/connectivity/networking/
Dnative_sim_setup.rst16 In this example, the :zephyr:code-sample:`sockets-echo-server` sample application from
73 :zephyr-app: samples/net/sockets/echo_server
97 Using offloaded sockets
110 :zephyr-app: samples/net/sockets/echo_server
130 Native Simulator with the offloaded sockets network driver is using the same
132 sockets API. This means that :zephyr:code-sample:`sockets-echo-server` and
/Zephyr-latest/samples/net/sockets/big_http_download/
DREADME.rst1 .. zephyr:code-sample:: sockets-big-http-download
5 Download a large file from a web server using BSD sockets.
10 The sockets/big_http_download sample application for Zephyr implements
12 the :zephyr:code-sample:`sockets-http-get` sample application, it downloads a file of
19 :zephyr_file:`samples/net/sockets/big_http_download`.
35 :zephyr-app: samples/net/sockets/big_http_download
72 :zephyr-app: samples/net/sockets/big_http_download
/Zephyr-latest/tests/bsim/net/sockets/echo_test/
DKconfig4 source "${ZEPHYR_BASE}/samples/net/sockets/echo_client/Kconfig"
/Zephyr-latest/subsys/net/lib/dns/
Ddispatcher.c23 static sys_slist_t sockets; variable
207 if (sys_slist_find(&sockets, &ctx->node, &prev_node)) { in dns_dispatcher_register()
212 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&sockets, entry, next, node) { in dns_dispatcher_register()
321 sys_slist_prepend(&sockets, &ctx->node); in dns_dispatcher_register()
335 (void)sys_slist_find_and_remove(&sockets, &ctx->node); in dns_dispatcher_unregister()
359 sys_slist_init(&sockets); in dns_dispatcher_init()
/Zephyr-latest/subsys/net/lib/websocket/
DCMakeLists.txt4 zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/lib/sockets)

123456