/third_party/boost/boost/asio/ |
D | socket_base.hpp | 125 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_BROADCAST)> 159 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DEBUG)> debug; 192 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DONTROUTE)> 226 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_KEEPALIVE)> keep_alive; 259 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDBUF)> 293 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDLOWAT)> 327 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVBUF)> 361 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVLOWAT)> 396 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_REUSEADDR)> 432 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_LINGER)> [all …]
|
/third_party/grpc/src/core/lib/iomgr/ |
D | socket_utils_common_posix.cc | 59 auto err = setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &enable, sizeof(enable)); in grpc_set_socket_zerocopy() 95 if (0 != setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))) { in grpc_set_socket_no_sigpipe_if_possible() 98 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible() 138 return 0 == setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buffer_size_bytes, in grpc_set_socket_sndbuf() 145 return 0 == setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &buffer_size_bytes, in grpc_set_socket_rcvbuf() 176 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr() 179 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr() 198 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) { in grpc_set_socket_reuse_port() 201 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &newval, &intlen)) { in grpc_set_socket_reuse_port()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 86 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,
|
D | setsockopt04.c | 36 SAFE_SETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUFFORCE, &sndbuf, optlen); in run() 37 SAFE_GETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUF, &rec_sndbuf, &optlen); in run()
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 281 error = setsockopt(sk2, SOL_SOCKET, SO_LINGER, &slinger, len); in main() 289 error = getsockopt(sk2, SOL_SOCKET, SO_LINGER, &glinger, &len); in main() 305 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main() 326 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_set, len); in main() 333 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main() 345 error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len); in main() 353 error = getsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_get, &len); in main()
|
/third_party/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 86 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,
|
/third_party/openssl/crypto/bio/ |
D | b_sock2.c | 90 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_connect() 151 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in BIO_bind() 217 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, in BIO_listen() 229 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_listen()
|
D | bss_dgram.c | 212 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 221 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 257 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 262 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout() 282 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout() 288 (b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout() 592 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 599 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl() 619 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 630 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() [all …]
|
/third_party/selinux/libselinux/src/ |
D | getpeercon.c | 26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw() 36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw()
|
/third_party/grpc/test/cpp/naming/ |
D | dns_test_util.cc | 61 if (setsockopt(tcp_socket_, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == in FakeNonResponsiveDNSServer() 69 if (setsockopt(tcp_socket_, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) != in FakeNonResponsiveDNSServer()
|
/third_party/grpc/examples/python/compression/test/ |
D | compression_example_test.py | 31 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 32 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
|
/third_party/curl/tests/libtest/ |
D | lib1522.c | 36 #if defined(SOL_SOCKET) && defined(SO_SNDBUF) in sockopt_callback() 40 setsockopt(curlfd, SOL_SOCKET, SO_SNDBUF, in sockopt_callback()
|
/third_party/python/Lib/test/support/ |
D | socket_helper.py | 93 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) == 1: 99 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1: 109 sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
|
/third_party/libcoap/src/ |
D | coap_tcp.c | 100 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR) 166 if (getsockopt(sock->fd, SOL_SOCKET, SO_ERROR, OPTVAL_GT(&error), 223 if (setsockopt (sock->fd, SOL_SOCKET, SO_KEEPALIVE, OPTVAL_T(&on), 229 if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on),
|
/third_party/musl/src/network/ |
D | recvmsg.c | 21 if (cmsg->cmsg_level==SOL_SOCKET) switch (cmsg->cmsg_type) { in __convert_scm_timestamps() 44 cmsg->cmsg_level = SOL_SOCKET; in __convert_scm_timestamps()
|
/third_party/musl/porting/liteos_a/user/src/network/ |
D | recvmsg.c | 22 if (cmsg->cmsg_level==SOL_SOCKET) switch (cmsg->cmsg_type) { in __convert_scm_timestamps() 45 cmsg->cmsg_level = SOL_SOCKET; in __convert_scm_timestamps()
|
/third_party/grpc/examples/python/cancellation/test/ |
D | _cancellation_example_test.py | 32 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 33 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
|
/third_party/pulseaudio/src/pulsecore/ |
D | socket-util.c | 145 if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, (const void *) &priority, sizeof(priority)) < 0) in pa_make_socket_low_delay() 203 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_rcvbuf() 216 if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_sndbuf()
|
/third_party/grpc/examples/python/multiprocessing/ |
D | server.py | 83 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 84 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
|
/third_party/ltp/testcases/network/netstress/ |
D | netstress.c | 144 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_BUSY_POLL, busy_poll); in init_socket_opts() 147 SAFE_SETSOCKOPT(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, in init_socket_opts() 157 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_ZEROCOPY, 1); in init_socket_opts() 221 getsockopt(i->fd, SOL_SOCKET, SO_ERROR, in TST_DECLARE_ONCE_FN() 310 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_REUSEPORT, 1); in bind_before_connect() 664 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEADDR, 1); in server_init() 666 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEPORT, 1); in server_init() 692 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_ZEROCOPY, 1); in server_init()
|
/third_party/libnl/lib/ |
D | socket.c | 645 err = getsockopt(fd, SOL_SOCKET, SO_TYPE, &so_type, &addrlen); in nl_socket_set_fd() 661 err = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &so_protocol, &addrlen); in nl_socket_set_fd() 826 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_SNDBUF, in nl_socket_set_buffer_size() 834 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_RCVBUF, in nl_socket_set_buffer_size() 902 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_PASSCRED, in nl_socket_set_passcred()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/remote-compile/ |
D | socket.cc | 83 getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len); in errored() 146 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast<char*>(&enable), in setOptions() 153 setsockopt(s, SOL_SOCKET, SO_LINGER, reinterpret_cast<char*>(&linger), in setOptions()
|
/third_party/lwip/src/core/distributed_net/ |
D | distributed_net_core.c | 104 if (lwip_getsockopt(sock, SOL_SOCKET, SO_TYPE, (void *)&type, &type_len) < 0) { in distributed_net_sendto() 146 if (lwip_getsockopt(sock, SOL_SOCKET, SO_TYPE, (void *)&type, &type_len) < 0) { in distributed_net_sendmsg() 191 if (lwip_getsockopt(sock, SOL_SOCKET, SO_TYPE, (void *)&type, &type_len) < 0) { in distributed_net_recvfrom()
|
/third_party/python/Lib/ |
D | asyncore.py | 295 socket.SOL_SOCKET, socket.SO_REUSEADDR, 296 self.socket.getsockopt(socket.SOL_SOCKET, 423 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 445 err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 606 if (level == socket.SOL_SOCKET and
|
/third_party/musl/arch/mips/bits/ |
D | socket.h | 4 #define SOL_SOCKET 65535 macro
|