Home
last modified time | relevance | path

Searched refs:linger (Results 1 – 25 of 76) sorted by relevance

1234

/external/strace/tests-mx32/
Dso_linger.c59 TAIL_ALLOC_OBJECT_CONST_PTR(struct linger, linger); in main()
62 const unsigned int sizeof_l_onoff = sizeof(linger->l_onoff); in main()
63 struct linger *const l_onoff = tail_alloc(sizeof_l_onoff); in main()
66 struct linger *const l_onoff_truncated = in main()
70 offsetofend(struct linger, l_linger) - 1; in main()
71 struct linger *const l_linger_truncated = in main()
79 *len = sizeof(*linger); in main()
80 get_linger(fd, linger, len); in main()
83 fd, linger->l_onoff, linger->l_linger, *len, errstr); in main()
86 linger->l_onoff = -15; in main()
[all …]
/external/strace/tests/
Dso_linger.c59 TAIL_ALLOC_OBJECT_CONST_PTR(struct linger, linger); in main()
62 const unsigned int sizeof_l_onoff = sizeof(linger->l_onoff); in main()
63 struct linger *const l_onoff = tail_alloc(sizeof_l_onoff); in main()
66 struct linger *const l_onoff_truncated = in main()
70 offsetofend(struct linger, l_linger) - 1; in main()
71 struct linger *const l_linger_truncated = in main()
79 *len = sizeof(*linger); in main()
80 get_linger(fd, linger, len); in main()
83 fd, linger->l_onoff, linger->l_linger, *len, errstr); in main()
86 linger->l_onoff = -15; in main()
[all …]
/external/strace/tests-m32/
Dso_linger.c59 TAIL_ALLOC_OBJECT_CONST_PTR(struct linger, linger); in main()
62 const unsigned int sizeof_l_onoff = sizeof(linger->l_onoff); in main()
63 struct linger *const l_onoff = tail_alloc(sizeof_l_onoff); in main()
66 struct linger *const l_onoff_truncated = in main()
70 offsetofend(struct linger, l_linger) - 1; in main()
71 struct linger *const l_linger_truncated = in main()
79 *len = sizeof(*linger); in main()
80 get_linger(fd, linger, len); in main()
83 fd, linger->l_onoff, linger->l_linger, *len, errstr); in main()
86 linger->l_onoff = -15; in main()
[all …]
/external/apache-http/src/org/apache/http/impl/
DDefaultHttpClientConnection.java73 int linger = HttpConnectionParams.getLinger(params); in bind() local
74 if (linger >= 0) { in bind()
75 socket.setSoLinger(linger > 0, linger); in bind()
DDefaultHttpServerConnection.java71 int linger = HttpConnectionParams.getLinger(params); in bind() local
72 if (linger >= 0) { in bind()
73 socket.setSoLinger(linger > 0, linger); in bind()
/external/strace/
Dnet.c590 struct linger linger; in print_get_linger() local
596 if (len > sizeof(linger)) in print_get_linger()
597 len = sizeof(linger); in print_get_linger()
598 if (umoven_or_printaddr(tcp, addr, len, &linger)) in print_get_linger()
601 if (len < sizeof(linger.l_onoff)) { in print_get_linger()
603 print_quoted_string((void *) &linger.l_onoff, in print_get_linger()
606 PRINT_FIELD_D("{", linger, l_onoff); in print_get_linger()
608 if (len > offsetof(struct linger, l_linger)) { in print_get_linger()
609 len -= offsetof(struct linger, l_linger); in print_get_linger()
610 if (len < sizeof(linger.l_linger)) { in print_get_linger()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dsocket_option.hpp212 class linger class
216 linger() in linger() function in asio::detail::socket_option::linger
223 linger(bool e, int t) in linger() function in asio::detail::socket_option::linger
Dsocket_types.hpp75 typedef ::linger linger_type;
/external/apache-http/src/org/apache/http/params/
DHttpConnectionParamBean.java58 public void setLinger (int linger) { in setLinger() argument
59 HttpConnectionParams.setLinger(params, linger); in setLinger()
/external/apache-http/src/org/apache/http/impl/conn/
DDefaultClientConnectionOperator.java272 int linger = HttpConnectionParams.getLinger(params); in prepareSocket() local
273 if (linger >= 0) { in prepareSocket()
274 sock.setSoLinger(linger > 0, linger); in prepareSocket()
/external/rust/crates/mio/src/sys/windows/
Dtcp.rs17 …self, closesocket, linger, setsockopt, getsockopt, getsockname, PF_INET, PF_INET6, SOCKET, SOCKET_…
146 let val: linger = linger { in set_linger()
156 size_of::<linger>() as c_int, in set_linger()
164 let mut val: linger = unsafe { std::mem::zeroed() }; in get_linger()
165 let mut len = size_of::<linger>() as c_int; in get_linger()
/external/parameter-framework/asio-1.10.6/include/asio/
Dsocket_base.hpp347 typedef asio::detail::socket_option::linger<
349 linger; typedef in asio::socket_base
/external/rust/crates/mio/src/sys/unix/
Dtcp.rs134 let val: libc::linger = libc::linger { in set_linger()
147 &val as *const libc::linger as *const libc::c_void, in set_linger()
148 size_of::<libc::linger>() as libc::socklen_t, in set_linger()
154 let mut val: libc::linger = unsafe { std::mem::zeroed() }; in get_linger()
155 let mut len = mem::size_of::<libc::linger>() as libc::socklen_t; in get_linger()
/external/apache-http/android/src/android/net/http/
DAndroidHttpClientConnection.java101 int linger = HttpConnectionParams.getLinger(params); in bind() local
102 if (linger >= 0) { in bind()
103 socket.setSoLinger(linger > 0, linger); in bind()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sockopt.c90 struct linger slinger; /*SO_LINGER structure*/ in main()
91 struct linger glinger; /*SO_LINGER structure*/ in main()
279 len = sizeof(struct linger); in main()
/external/conscrypt/common/src/main/java/org/conscrypt/
DAbstractConscryptSocket.java332 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
334 socket.setSoLinger(on, linger); in setSoLinger()
336 super.setSoLinger(on, linger); in setSoLinger()
/external/parameter-framework/upstream/asio/stub/
Dasio.hpp100 using linger = dummy_base; typedef
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DAbstractConscryptSocket.java333 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
335 socket.setSoLinger(on, linger); in setSoLinger()
337 super.setSoLinger(on, linger); in setSoLinger()
/external/conscrypt/android/src/main/java/org/conscrypt/
DPreKitKatPlatformOpenSSLSocketImplAdapter.java125 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
126 delegate.setSoLinger(on, linger); in setSoLinger()
DKitKatPlatformOpenSSLSocketImplAdapter.java125 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument
126 delegate.setSoLinger(on, linger); in setSoLinger()
/external/rust/crates/tokio/tests/
Dtcp_stream.rs25 assert_eq!(stream.linger().unwrap().unwrap().as_secs(), 1); in set_linger()
28 assert!(stream.linger().unwrap().is_none()); in set_linger()
/external/usrsctp/fuzzer/
Dfuzzer_connect.c176 struct linger so_linger; in LLVMFuzzerTestOneInput()
296 …result = usrsctp_setsockopt(socket_client, SOL_SOCKET, SO_LINGER, &so_linger, sizeof(struct linger in LLVMFuzzerTestOneInput()
/external/libevent/test/
Dbench_httpclient.c117 struct linger l; in frob_socket()
/external/parameter-framework/upstream/remote-processor/
DRemoteProcessorServer.cpp118 _acceptor.set_option(socket_base::linger(true, 0)); in start()
/external/jacoco/org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/
DMockSocketConnection.java320 public void setSoLinger(boolean on, int linger) throws SocketException { in setSoLinger() argument

1234