Home
last modified time | relevance | path

Searched refs:SOCK_STREAM (Results 1 – 25 of 728) sorted by relevance

12345678910>>...30

/external/strace/xlat/
Dsocktypes.h14 #if defined(SOCK_STREAM) || (defined(HAVE_DECL_SOCK_STREAM) && HAVE_DECL_SOCK_STREAM)
16 static_assert((SOCK_STREAM) == (2), "SOCK_STREAM != 2");
19 # define SOCK_STREAM 2
22 #if defined(SOCK_STREAM) || (defined(HAVE_DECL_SOCK_STREAM) && HAVE_DECL_SOCK_STREAM)
24 static_assert((SOCK_STREAM) == (1), "SOCK_STREAM != 1");
27 # define SOCK_STREAM 1
80 XLAT(SOCK_STREAM),
82 XLAT(SOCK_STREAM),
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
90 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen,
100 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen,
110 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen,
123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen,
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
91 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
98 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0,
105 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
109 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval,
114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval,
119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval,
124 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval,
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c111 PF_INET, SOCK_STREAM, 0, iov, 1, buf, sizeof(buf), &msgdat, 0,
123 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
129 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
134 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)-1, sizeof(buf),
140 PF_INET, SOCK_STREAM, 0, 0, 1, (void *)buf, sizeof(buf),
146 PF_INET, SOCK_STREAM, 0, iov, -1, (void *)buf, sizeof(buf),
152 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
158 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
165 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
172 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
[all …]
/external/ltp/testcases/kernel/syscalls/recvfrom/
Drecvfrom01.c94 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0,
103 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0,
108 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0,
113 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0,
118 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_OOB,
123 PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_ERRQUEUE,
151 && (tdat[testno].type & SOCK_STREAM)) { in main()
220 if (tdat[testno].type == SOCK_STREAM && in setup1()
257 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_dualstack.c68 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd()
112 if (proto == SOCK_STREAM) { in receive_once()
194 build_rcv_fd(AF_INET, SOCK_STREAM, rcv_fds, 5); in main()
195 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main()
196 test(rcv_fds, 10, SOCK_STREAM); in main()
201 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main()
202 build_rcv_fd(AF_INET, SOCK_STREAM, &(rcv_fds[5]), 5); in main()
203 test(rcv_fds, 10, SOCK_STREAM); in main()
Dreuseport_bpf.c175 if (p.protocol == SOCK_STREAM) { in build_recv_group()
246 if (p.protocol == SOCK_STREAM) { in test_recv_order()
577 .protocol = SOCK_STREAM, in main()
584 .protocol = SOCK_STREAM, in main()
590 .protocol = SOCK_STREAM, in main()
594 .protocol = SOCK_STREAM, in main()
601 .protocol = SOCK_STREAM, in main()
608 .protocol = SOCK_STREAM, in main()
614 .protocol = SOCK_STREAM, in main()
618 .protocol = SOCK_STREAM, in main()
[all …]
/external/ltp/testcases/kernel/syscalls/socketpair/
Dsocketpair01.c45 {0, SOCK_STREAM, 0, fds, -1, EAFNOSUPPORT, "invalid domain"},
50 {PF_UNIX, SOCK_STREAM, 0, 0, -1, EFAULT, "bad aligned pointer"},
51 {PF_UNIX, SOCK_STREAM, 0, (int *)7, -1, EFAULT, "bad unaligned pointer"},
55 {PF_INET, SOCK_STREAM, 6, fds, -1, EOPNOTSUPP, "TCP socket"},
56 {PF_INET, SOCK_STREAM, 1, fds, -1, EPROTONOSUPPORT, "ICMP stream"}
Dsocketpair02.c46 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"},
47 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
48 {SOCK_STREAM, 0, F_GETFL, "no non-blocking"},
49 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
/external/ltp/testcases/kernel/syscalls/bind/
Dbind01.c82 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1,
87 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2,
96 PF_UNIX, SOCK_STREAM, 0, (struct sockaddr *)&sun1,
100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin3,
155 sin1.sin_port = tst_get_unused_port(NULL, AF_INET, SOCK_STREAM); in setup()
/external/ltp/testcases/kernel/syscalls/connect/
Dconnect01.c83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
89 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1,
94 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
104 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2,
108 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4,
187 sin2.sin_port = tst_get_unused_port(NULL, AF_INET, SOCK_STREAM); in setup()
249 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/external/ltp/testcases/kernel/syscalls/accept/
Daccept01.c69 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
72 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
75 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)3,
78 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
81 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
84 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
/external/ltp/testcases/kernel/syscalls/socket/
Dsocket02.c43 {SOCK_STREAM, 0, F_GETFD, "no close-on-exec"},
44 {SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec"},
45 {SOCK_STREAM, 0, F_GETFL, "no non-blocking"},
46 {SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, "non-blocking"}
Dsocket01.c43 {0, SOCK_STREAM, 0, -1, EAFNOSUPPORT, "invalid domain"},
48 {PF_INET, SOCK_STREAM, 17, -1, EPROTONOSUPPORT, "UDP stream"},
50 {PF_INET, SOCK_STREAM, 6, 0, 0, "TCP socket"},
51 {PF_INET, SOCK_STREAM, 1, -1, EPROTONOSUPPORT, "ICMP stream"}
/external/webrtc/webrtc/base/
Dsocket_unittest.cc198 SOCK_STREAM)); in ConnectInternal()
205 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectInternal()
253 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal()
258 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupInternal()
301 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal()
306 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectFailInternal()
334 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal()
339 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithDnsLookupFailInternal()
372 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal()
378 ss_->CreateAsyncSocket(loopback.family(), SOCK_STREAM)); in ConnectWithClosedSocketInternal()
[all …]
/external/ltp/testcases/kernel/syscalls/getsockname/
Dgetsockname01.c80 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
89 PF_INET, SOCK_STREAM, 0, NULL,
93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
97 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&fsin1,
/external/ltp/testcases/kernel/syscalls/recv/
Drecv01.c84 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0,
93 PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0,
98 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_OOB,
102 PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), MSG_ERRQUEUE,
129 && (tdat[testno].type & SOCK_STREAM)) { in main()
198 if (tdat[testno].type == SOCK_STREAM && in setup1()
228 sfd = socket(PF_INET, SOCK_STREAM, 0); in start_server()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_sock.c123 SOCK_STREAM,
137 SOCK_STREAM,
207 SOCK_STREAM,
221 SOCK_STREAM,
250 SOCK_STREAM,
279 SOCK_STREAM,
293 SOCK_STREAM,
307 SOCK_STREAM,
Dtest_sock_addr.c103 SOCK_STREAM,
117 SOCK_STREAM,
131 SOCK_STREAM,
159 SOCK_STREAM,
173 SOCK_STREAM,
187 SOCK_STREAM,
217 SOCK_STREAM,
231 SOCK_STREAM,
245 SOCK_STREAM,
273 SOCK_STREAM,
[all …]
/external/autotest/client/tests/ipv6connect/src/
Dipv6connect.c47 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
72 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ConnectAndAccept()
103 if ((*server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServer()
132 if ((server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
156 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
175 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in CreateServerConnectAndAccept()
224 if ((threaded_server_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedStartServer()
286 if ((client_fd = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
314 if ((client_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == -1) { in ThreadedCreateServerConnectAndAccept()
/external/python/cpython3/Lib/test/
Dtest_timeout.py24 socket.SOCK_STREAM)[0][4]
31 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
147 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
200 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
251 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
260 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
270 with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_connect.c88 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
89 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
96 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
98 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
Dtest_1_to_1_connectx.c87 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
88 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
91 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
95 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
97 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
Dtest_1_to_1_accept_close.c94 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
97 new_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
101 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
104 clnt2_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
107 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
Dtest_1_to_1_send.c85 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
87 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
89 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
178 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
180 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()

12345678910>>...30