Home
last modified time | relevance | path

Searched +full:adopt +full:- +full:info (Results 1 – 25 of 132) sorted by relevance

123456

/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
DREADME.md1 # lws minimal ws server raw adopt tcp
5 want lws to "adopt" the socket.
8 can just use lws_client_connect_via_info() with info.method = "RAW".
9 http-client/minimal-http-client shows how to do that, just set
10 info.method to "RAW".)
12 This example demonstrates how to adopt a foreign, connected socket into lws
16 has lws adopt it as a raw wsi. The lws protocol writes "GET / HTTP/1.1"
31 $ ./lws-minimal-raw-adopt-tcp
32 [2018/03/23 09:03:57:1960] USER: LWS minimal raw adopt tcp
41 …23 09:03:57:7842] NOTICE: 0020: 77 73 77 73 0D 0A 53 74 72 69 63 74 2D 54 72 61 wsws..Strict-Tra
[all …]
Dminimal-raw-adopt-tcp.c2 * lws-minimal-raw-adopt-tcp
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
17 * can just use lws_client_connect_via_info() with info.method = "RAW".
79 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
92 struct lws_context_creation_info info; in main() local
101 * -DCMAKE_BUILD_TYPE=DEBUG instead of =RELEASE */ in main()
108 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
112 lwsl_user("LWS minimal raw adopt tcp\n"); in main()
114 memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */ in main()
115 info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS; in main()
[all …]
/external/libwebsockets/include/libwebsockets/
Dlws-adopt.h2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
25 /** \defgroup sock-adopt Socket adoption helpers
36 * lws_adopt_socket() - adopt foreign socket as if listen socket accepted it
40 * \param accept_fd: fd of already-accepted socket to adopt
51 * lws_adopt_socket_vhost() - adopt foreign socket as if listen socket accepted
55 * \param accept_fd: fd of already-accepted socket to adopt
100 #define sa46_socklen(_sa46) (socklen_t)((_sa46)->sa4.sin_family == AF_INET ? \
103 #define sa46_sockport(_sa46, _sp) { if ((_sa46)->sa4.sin_family == AF_INET) \
104 (_sa46)->sa4.sin_port = (_sp); else \
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-udp/
Dminimal-raw-adopt-udp.c2 * lws-minimal-raw-adopt-udp
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
15 * to create, bind, and adopt them inside lws.
130 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
143 struct lws_context_creation_info info; in main() local
150 * -DCMAKE_BUILD_TYPE=DEBUG instead of =RELEASE */ in main()
157 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
161 lwsl_user("LWS minimal raw adopt udp | nc -u 127.0.0.1 7681\n"); in main()
163 memset(&info, 0, sizeof info); /* otherwise uninitialized garbage */ in main()
164 info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS; in main()
[all …]
/external/libwebsockets/lib/core-net/
Dadopt.c2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
25 #include "private-lib-core.h"
31 int n = 0, hit = -1; in lws_get_idlest_tsi()
33 for (; n < context->count_threads; n++) { in lws_get_idlest_tsi()
34 lwsl_cx_debug(context, "%d %d\n", context->pt[n].fds_count, in lws_get_idlest_tsi()
35 context->fd_limit_per_thread - 1); in lws_get_idlest_tsi()
36 if ((unsigned int)context->pt[n].fds_count != in lws_get_idlest_tsi()
37 context->fd_limit_per_thread - 1 && in lws_get_idlest_tsi()
38 (unsigned int)context->pt[n].fds_count < lowest) { in lws_get_idlest_tsi()
[all …]
/external/skia/include/gpu/d3d/
DGrD3DTypes.h5 * Use of this source code is governed by a BSD-style license that can be
31 /** Check if the argument is non-null, and if so, call obj->AddRef() and return obj.
35 obj->AddRef(); in GrSafeComAddRef()
40 /** Check if the argument is non-null, and if so, call obj->Release()
44 obj->Release(); in GrSafeComRelease()
69 * Adopt the bare object into the newly created gr_cp.
91 this->reset(GrSafeComAddRef(that.get()));
102 this->reset(that.release());
106 explicit operator bool() const { return this->get() != nullptr; }
109 T* operator->() const { return fObject; }
[all …]
/external/flatbuffers/snap/
Dsnapcraft.yaml3 adopt-info: flatc
25 - -GUnix Makefiles
26 - -DCMAKE_BUILD_TYPE=Release
27 build-packages:
28 - g++
29 - git
30 override-pull: |
32 tag=$(git describe --tags --abbrev=0)
33 count=$(git rev-list $tag.. --count)
38 hash=$(git rev-parse --short HEAD)
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-file/
Dminimal-raw-file.c2 * lws-minimal-raw-file
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
41 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
42 if (vhd->filefd == -1) { in callback_raw_test()
47 u.filefd = (lws_filefd_type)(long long)vhd->filefd; in callback_raw_test()
50 "raw-test", NULL)) { in callback_raw_test()
51 lwsl_err("Failed to adopt fifo descriptor\n"); in callback_raw_test()
52 close(vhd->filefd); in callback_raw_test()
53 vhd->filefd = -1; in callback_raw_test()
60 if (vhd && vhd->filefd != -1) in callback_raw_test()
[all …]
/external/clang/lib/AST/
DNestedNameSpecifier.cpp1 //===--- NestedNameSpecifier.cpp - C++ nested name specifiers -----*- C++ -*-=//
8 //===----------------------------------------------------------------------===//
11 // a C++ nested-name-specifier.
13 //===----------------------------------------------------------------------===//
49 assert((!Prefix || Prefix->isDependent()) && "Prefix must be dependent"); in Create()
64 (Prefix->getAsType() == nullptr && in Create()
65 Prefix->getAsIdentifier() == nullptr)) && in Create()
80 (Prefix->getAsType() == nullptr && in Create()
81 Prefix->getAsIdentifier() == nullptr)) && in Create()
183 return getAsType()->getAsCXXRecordDecl(); in getAsRecordDecl()
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-audio/
Daudio.c2 * lws-minimal-raw-audio
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
51 return -1; in set_hw_params()
56 return -1; in set_hw_params()
61 "lws-audio-test", NULL); in set_hw_params()
63 lwsl_err("%s: Failed to adopt playback desc\n", __func__); in set_hw_params()
101 return -1; in set_hw_params()
117 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_playback, in callback_raw_test()
122 return -1; in callback_raw_test()
125 if (set_hw_params(lws_get_vhost(wsi), &vhd->pcm_capture, in callback_raw_test()
[all …]
/external/autotest/site_utils/
Dlxc_cleanup.py3 # Use of this source code is governed by a BSD-style license that can be
37 FINISHED_JOB_CUTOFF_TIME = datetime.datetime.now() - datetime.timedelta(hours=1)
100 logging.info('dryrun: Cleanup container %s', container.name)
109 logging.info('Stopping process %s...', pid)
113 logging.info('Destroying container %s...', container.name)
128 parser.add_argument('-v', '--verbose', action='store_true',
131 parser.add_argument('-x', '--execute', action='store_true',
136 # TODO(dshi): Consider to adopt the scheduler log model:
139 parser.add_argument('-l', '--logfile', type=str,
154 level=logging.DEBUG if options.verbose else logging.INFO)
[all …]
/external/libevent/cmake/
DCodeCoverage.cmake2 # Boost Software License - Version 1.0 - August 17th, 2003
8 # Software, and to permit third-parties to whom the Software is furnished to
15 # works are solely in the form of machine-executable object code generated by
20 # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
26 # 2012-01-31, Lars Bilke
27 # - Enable Code Coverage
29 # 2013-09-17, Joakim Söderberg
30 # - Added support for Clang.
31 # - Some additional usage instructions.
33 # 2016-11-02, Azat Khuzhin
[all …]
/external/rust/crates/tokio-util/src/sync/cancellation_token/
Dtree_node.rs26 //! - being created with `child_node()`, in which case it is trivially true that
28 //! - being moved A->C->B to A->B because node C was removed in `decrease_handle_refcount()`
51 pub(crate) fn new() -> Self { in new()
64 pub(crate) fn notified(&self) -> tokio::sync::futures::Notified<'_> { in notified()
82 pub(crate) fn is_cancelled(node: &Arc<TreeNode>) -> bool { in is_cancelled()
87 pub(crate) fn child_node(parent: &Arc<TreeNode>) -> Arc<TreeNode> { in child_node()
137 /// For more info look at *deadlock safety* and *invariant #2*.
150 fn with_locked_node_and_parent<F, Ret>(node: &Arc<TreeNode>, func: F) -> Ret in with_locked_node_and_parent()
152 F: FnOnce(MutexGuard<'_, Inner>, Option<MutexGuard<'_, Inner>>) -> Ret, in with_locked_node_and_parent()
205 // Pre-allocate in the parent, for performance in move_children_to_parent()
[all …]
/external/v4l2_codec2/components/
DV4L2EncodeInterface.cpp2 // Use of this source code is governed by a BSD-style license that can be
73 bool /*mayBlock*/, C2P<C2StreamProfileLevelInfo::output>& info, in H264ProfileLevelSetter() argument
79 // Adopt default minimal profile instead if the requested profile is not supported, or lower in H264ProfileLevelSetter()
82 if (!info.F(info.v.profile).supportsAtAll(info.v.profile) || info.v.profile < minProfile) { in H264ProfileLevelSetter()
83 if (info.F(info.v.profile).supportsAtAll(minProfile)) { in H264ProfileLevelSetter()
85 info.set().profile = minProfile; in H264ProfileLevelSetter()
88 info.v.profile, minProfile); in H264ProfileLevelSetter()
89 return C2R(C2SettingResultBuilder::BadValue(info.F(info.v.profile))); in H264ProfileLevelSetter()
93 // Table A-1 in spec in H264ProfileLevelSetter()
126 if (lowestConfigLevel != C2Config::LEVEL_UNUSED && lowestConfigLevel < info.v.level) { in H264ProfileLevelSetter()
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-serial/
Dminimal-raw-file.c2 * lws-minimal-raw-file
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
40 lws_callback_on_writable(v->wsi); in sul_cb()
42 lws_sul_schedule(lws_get_context(v->wsi), 0, &v->sul, sul_cb, in sul_cb()
64 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test()
65 if (vhd->filefd == -1) { in callback_raw_test()
71 tcflush(vhd->filefd, TCIOFLUSH); in callback_raw_test()
74 if (ioctl(vhd->filefd, TIOCGSERIAL, &s_s) == 0) { in callback_raw_test()
76 ioctl(vhd->filefd, TIOCSSERIAL, &s_s); in callback_raw_test()
83 if (tcgetattr(vhd->filefd, &tio)) { in callback_raw_test()
[all …]
/external/flatbuffers/.github/workflows/
Dbuild.yml2 permissions: read-all
9 - "*" # new tag version, like `0.8.4` or else
11 - master
14 - master
17 build-linux:
21 digests-gcc: ${{ steps.hash-gcc.outputs.hashes }}
22 digests-clang: ${{ steps.hash-clang.outputs.hashes }}
24 runs-on: ubuntu-latest
27 cxx: [g++-10, clang++-12]
28 fail-fast: false
[all …]
/external/libwebsockets/minimal-examples/raw/minimal-raw-netcat/
Dminimal-raw-netcat.c2 * lws-minimal-raw-netcat
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
71 return -1; in callback_raw_test()
100 while (len--) in callback_raw_test()
113 return -1; in callback_raw_test()
121 return -1; in callback_raw_test()
131 { "raw-test", callback_raw_test, 0, 0, 0, NULL, 0 },
143 struct lws_context_creation_info info; in main() local
152 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
156 lwsl_user("LWS minimal raw netcat [--server ip] [--port port] [-w ms]\n"); in main()
[all …]
/external/pigweed/pw_rpc/public/pw_rpc/
Dserver.h7 // https://www.apache.org/licenses/LICENSE-2.0
93 // OK - The packet was processed by the server.
94 // DATA_LOSS - Failed to decode the packet.
95 // INVALID_ARGUMENT - The packet is intended for a client, not a server.
96 // UNAVAILABLE - No RPC channel with the requested ID was found.
128 // use a special call ID and will adopt the call ID from the first packet for
144 using Info = internal::MethodInfo<kMethod>; in OpenCall() local
147 Info::kType == kExpected, in OpenCall()
151 Info::kType == kExpected, in OpenCall()
155 Info::kType == kExpected, in OpenCall()
[all …]
/external/openthread/src/core/thread/
Dindirect_sender_frame_context.hpp37 #include "openthread-core-config.h"
44 * @addtogroup core-mesh-forwarding
64 …* This type specifies all the info that `IndirectSender` requires to be saved along with a prepare…
66 …* transmission to sleepy children and be able to interface to different lower-layer implementation…
67 …taPollHandler`. While the `FrameContext` is defined by the `IndirectSender` itself, the lower-layer
69 …* lower-layer callback asking for a frame to be prepared). This model allows different implementat…
70 * `DataPollHandler` to adopt different strategies on how to save the context.
/external/tensorflow/third_party/absl/abseil-cpp/
DREADME.md1 # Abseil - C++ Common Libraries
3 The repository contains the Abseil C++ library code. Abseil is an open-source
9 - [About Abseil](#about)
10 - [Quickstart](#quickstart)
11 - [Building Abseil](#build)
12 - [Support](#support)
13 - [Codemap](#codemap)
14 - [Releases](#releases)
15 - [License](#license)
16 - [Links](#links)
[all …]
/external/bcc/snap/
Dsnapcraft.yaml16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 mount-observe: null
25 system-observe: null
26 system-trace: null
29 adopt-info: bcc
32 - build-on: s390x
33 - build-on: ppc64el
34 - build-on: arm64
35 - build-on: armhf
36 - build-on: amd64
[all …]
/external/angle/third_party/abseil-cpp/
DREADME.md1 # Abseil - C++ Common Libraries
3 The repository contains the Abseil C++ library code. Abseil is an open-source
9 - [About Abseil](#about)
10 - [Quickstart](#quickstart)
11 - [Building Abseil](#build)
12 - [Support](#support)
13 - [Codemap](#codemap)
14 - [Releases](#releases)
15 - [License](#license)
16 - [Links](#links)
[all …]
/external/cronet/third_party/abseil-cpp/
DREADME.md1 # Abseil - C++ Common Libraries
3 The repository contains the Abseil C++ library code. Abseil is an open-source
9 - [About Abseil](#about)
10 - [Quickstart](#quickstart)
11 - [Building Abseil](#build)
12 - [Support](#support)
13 - [Codemap](#codemap)
14 - [Releases](#releases)
15 - [License](#license)
16 - [Links](#links)
[all …]
/external/webrtc/third_party/abseil-cpp/
DREADME.md1 # Abseil - C++ Common Libraries
3 The repository contains the Abseil C++ library code. Abseil is an open-source
9 - [About Abseil](#about)
10 - [Quickstart](#quickstart)
11 - [Building Abseil](#build)
12 - [Support](#support)
13 - [Codemap](#codemap)
14 - [Releases](#releases)
15 - [License](#license)
16 - [Links](#links)
[all …]
/external/ComputeLibrary/src/core/CL/kernels/
DCLDepthwiseConvolutionLayerNativeKernel.cpp2 * Copyright (c) 2019-2023 Arm Limited.
4 * SPDX-License-Identifier: MIT
68 …const size_t idx_c = get_data_layout_dimension_index(input->data_layout(), DataLayoutDimension::CH… in validate_arguments()
70 …ARM_COMPUTE_RETURN_ERROR_ON(weights->dimension(idx_c) != (input->dimension(idx_c) * conv_info.dept… in validate_arguments()
75 …const int weights_width_idx = get_data_layout_dimension_index(weights->data_layout(), DataLayoutD… in validate_arguments()
76 …const int weights_height_idx = get_data_layout_dimension_index(weights->data_layout(), DataLayoutD… in validate_arguments()
77 …ARM_COMPUTE_RETURN_ERROR_ON(weights->tensor_shape()[weights_width_idx] != 1U || weights->tensor_sh… in validate_arguments()
84 …const ConvolutionInfo info{ conv_info.pad_stride_info, conv_info.depth_multiplier, ActivationLayer… in validate_arguments() local
92 const bool is_quantized = is_data_type_quantized(input->data_type()); in validate_arguments()
96 ARM_COMPUTE_RETURN_ERROR_ON(biases->dimension(0) != output_shape[idx_c]); in validate_arguments()
[all …]

123456