tag | 9f65be4b577ff4ade5c11904d8deab6e6e30737c | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Jan 08 15:47:09 2025 -0800 |
object | 27f1d946b1aae4ae866d789a4cc0c404d1750df1 |
aml_mpr_351113100 (12872438,com.google.android.go.mediaprovider,com.google.android.mediaprovider)
commit | 27f1d946b1aae4ae866d789a4cc0c404d1750df1 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Sep 01 21:43:33 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Sep 01 21:43:33 2024 +0000 |
tree | 4bc024c2fffcd1f4f75f1c1bbcf72c627bfacc7c | |
parent | 2c505677c7fe654e92601e7f822b003fae6879f8 [diff] | |
parent | 3e4aa1238b1bd8e6fb0c14389571e5523047a71a [diff] |
Snap for 12306796 from 3e4aa1238b1bd8e6fb0c14389571e5523047a71a to mainline-mediaprovider-release Change-Id: I476c4ba6daf67fd8455d8875b24188664d38a148
Socket2 is a crate that provides utilities for creating and using sockets.
The goal of this crate is to create and use a socket using advanced configuration options (those that are not available in the types in the standard library) without using any unsafe code.
This crate provides as direct as possible access to the system‘s functionality for sockets, this means little effort to provide cross-platform utilities. It is up to the user to know how to use sockets when using this crate. *If you don’t know how to create a socket using libc/system calls then this crate is not for you*. Most, if not all, functions directly relate to the equivalent system call with no error handling applied, so no handling errors such as EINTR
. As a result using this crate can be a little wordy, but it should give you maximal flexibility over configuration of sockets.
See the API documentation for more.
Currently Socket2 supports two versions: v0.5 and v0.4. Version 0.5 is being developed in the master branch. Version 0.4 is developed in the v0.4.x branch branch.
Socket2 attempts to support the same OS/architectures as Rust does, see https://doc.rust-lang.org/nightly/rustc/platform-support.html. However this is not always possible, below is current list of support OSs.
If your favorite OS is not on the list consider contributing it! See issue #78.
These OSs are tested with each commit in the CI and must always pass the tests. All functions/types/etc., excluding ones behind the all
feature, must work on these OSs.
These OSs are currently build in the CI, but not tested. Not all functions/types/etc. may work on these OSs, even ones not behind the all
feature flag.
Socket2 uses 1.63.0 as MSRV.
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.