Home
last modified time | relevance | path

Searched full:socketpair (Results 1 – 25 of 36) sorted by relevance

12

/Zephyr-latest/samples/net/sockets/socketpair/
DREADME.rst1 .. zephyr:code-sample:: sockets-socketpair
2 :name: Socketpair
10 The sockets/socketpair sample application for Zephyr demonstrates a
13 socketpair(2), as you might have guessed. Such sockets are compatible
19 :zephyr_file:`samples/net/sockets/socketpair`.
32 :zephyr-app: samples/net/sockets/socketpair
44 Alpha: socketpair: 4 <=> 3
45 Bravo: socketpair: 6 <=> 5
46 Charlie: socketpair: 8 <=> 7
77 Alpha: socketpair: 3 <=> 4
[all …]
Dsample.yaml2 description: Socketpair sample
3 name: socketpair
14 sample.net.sockets.socketpair: {}
Dprj.conf4 # socketpair dependencies
/Zephyr-latest/tests/net/socket/socketpair/
Dtestcase.yaml15 net.socket.socketpair: {}
16 net.socket.socketpair.newlib:
20 net.socket.socketpair.picolibc:
24 net.socket.socketpair.high_mem:
DCMakeLists.txt5 project(socketpair) project
/Zephyr-latest/tests/net/socket/socketpair/src/
Dunsupported_calls.c21 "bind should fail on a socketpair endpoint"); in ZTEST_USER_F()
27 "connect should fail on a socketpair endpoint"); in ZTEST_USER_F()
33 "listen should fail on a socketpair endpoint"); in ZTEST_USER_F()
39 "accept should fail on a socketpair endpoint"); in ZTEST_USER_F()
Dexpected_failures.c22 zassert_equal(res, -1, "socketpair should fail with bad address family"); in ZTEST_USER_F()
34 "socketpair should fail with unsupported socket type"); in ZTEST_USER_F()
46 "socketpair should fail with unsupported protocol"); in ZTEST_USER_F()
59 "socketpair should fail with invalid socket vector"); in ZTEST_USER_F()
Dhappy_path.c18 const char *expected_msg = "Hello, socketpair(2) world!"; in happy_path()
51 "the wrong message was passed through the socketpair"); in happy_path()
76 "the wrong message was passed through the socketpair"); in happy_path()
104 "the wrong message was passed through the socketpair"); in happy_path()
Dclosed_ends.c27 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()
64 zassert_equal(res, 0, "socketpair() failed: %d", errno); in ZTEST_USER_F()
Dfcntl.c20 "socketpair should block by default"); in ZTEST_USER_F()
Dblock.c12 /* the secondary-side socket of the socketpair */
/Zephyr-latest/tests/modules/thrift/ThriftTest/
Dprj.conf45 # TFDServer.cpp for our server and socketpair() for our channel. We do not
53 # socketpair for channel: 2
Doverlay-tls.conf6 # Additionally, upstream Apache Thrift uses socketpair for cancellation rather
/Zephyr-latest/subsys/net/lib/sockets/
DCMakeLists.txt39 zephyr_library_sources_ifdef(CONFIG_NET_SOCKETPAIR socketpair.c)
Dsocketpair.c28 * Socketpair endpoint structure
30 * This structure represents one half of a socketpair (an 'endpoint').
32 * The implementation strives for compatibility with socketpair(2).
35 * resources contained within the other half of the socketpair (or other
39 * - each end of a socketpair owns a @a recv_q
136 * This function deletes one endpoint of a socketpair.
139 * - we have a socketpair with two endpoints: A and B
210 * Create a @ref spair (1/2 of a socketpair)
286 SYS_PORT_TRACING_OBJ_FUNC_ENTER(socket, socketpair, family, type, proto, sv); in z_impl_zsock_socketpair()
329 SYS_PORT_TRACING_OBJ_FUNC_EXIT(socket, socketpair, sv[0], sv[1], 0); in z_impl_zsock_socketpair()
[all …]
DKconfig326 bool "Support for socketpair"
339 Buffer size for socketpair(2)
342 prompt "Memory management for socketpair"
/Zephyr-latest/samples/net/sockets/socketpair/src/
Dmain.c111 res = socketpair(AF_UNIX, SOCK_STREAM, 0, ctx[i].spair); in setup()
113 perror("socketpair"); in setup()
141 printf("%s: socketpair: %d <=> %d\n", in setup()
/Zephyr-latest/tests/modules/thrift/ThriftTest/src/
Dmain.cpp136 rv = socketpair(AF_UNIX, SOCK_STREAM, 0, &context.fds.front()); in thrift_test_before()
137 zassert_equal(0, rv, "socketpair failed: %d\n", rv); in thrift_test_before()
/Zephyr-latest/include/zephyr/posix/sys/
Dsocket.h49 int socketpair(int family, int type, int proto, int sv[2]);
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLServerSocket.cpp71 GlobalOutput.perror("TServerSocket::listen() socketpair() interrupt", in listen()
82 GlobalOutput.perror("TServerSocket::listen() socketpair() childInterrupt", in listen()
/Zephyr-latest/modules/hostap/
DKconfig51 # z_wpa_event_sock - 1 socketpair = 2
55 # uses socketpair which pushes the stack usage causing overflow for 2048 bytes.
/Zephyr-latest/doc/releases/
Drelease-notes-2.3.rst585 * Added support for socketpair() BSD socket API
694 * socketpair() function implemented.
731 * :github:`25960` - tests/net/socket/socketpair failed on mimxrt1050_evk and sam_e70_xplained.
735 * :github:`25925` - tests: net: socket: socketpair: fails due to empty message header name
750 …overity CID :210607] Uninitialized scalar variable in tests/net/socket/socketpair/src/test_socketp…
751 …overity CID :210579] Uninitialized scalar variable in tests/net/socket/socketpair/src/test_socketp…
753 * :github:`25793` - [Coverity CID :210561] Resource leak in tests/net/socket/socketpair/src/test_so…
756 …5788` - [Coverity CID :210581] Dereference before null check in subsys/net/lib/sockets/socketpair.c
759 …Coverity CID :210612] Negative array index read in samples/net/sockets/socketpair/src/socketpair_e…
785 * :github:`25737` - [Coverity CID :210585] Unchecked return value in samples/net/sockets/socketpair
[all …]
/Zephyr-latest/tests/posix/headers/src/
Dsys_socket_h.c120 zassert_not_null(socketpair); in ZTEST()
/Zephyr-latest/doc/connectivity/networking/
Dnet_config_guide.rst96 This option is used by socketpair() function. It sets the size of the
98 messages can be passed between two socketpair endpoints.
/Zephyr-latest/lib/posix/options/
Dnet.c397 int socketpair(int family, int type, int proto, int sv[2]) in socketpair() function

12