{"id":22616311,"url":"https://github.com/xpepermint/async-uninet","last_synced_at":"2025-04-11T12:23:21.680Z","repository":{"id":62438289,"uuid":"262605448","full_name":"xpepermint/async-uninet","owner":"xpepermint","description":"Unified types for asynchronous TCP \u0026 Unix sockets.","archived":false,"fork":false,"pushed_at":"2020-08-29T12:00:39.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T08:42:39.490Z","etag":null,"topics":["address","cargo","crate","inet","listener","net","rust","stream","tcp","unix"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xpepermint.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["xpepermint"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-05-09T15:53:07.000Z","updated_at":"2020-08-29T12:00:41.000Z","dependencies_parsed_at":"2022-11-01T21:46:46.471Z","dependency_job_id":null,"html_url":"https://github.com/xpepermint/async-uninet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fasync-uninet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fasync-uninet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fasync-uninet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpepermint%2Fasync-uninet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpepermint","download_url":"https://codeload.github.com/xpepermint/async-uninet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401345,"owners_count":21097328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["address","cargo","crate","inet","listener","net","rust","stream","tcp","unix"],"created_at":"2024-12-08T19:12:06.147Z","updated_at":"2025-04-11T12:23:21.661Z","avatar_url":"https://github.com/xpepermint.png","language":"Rust","funding_links":["https://github.com/sponsors/xpepermint"],"categories":[],"sub_categories":[],"readme":"\u003e Unified types for asynchronous TCP \u0026 Unix sockets.\n\nThe types provided by this crate allow for writing socket-type-agnostic network applications that treat UNIX sockets in the same way as IPv4 and IPv6.\n\nThis package is built using [async-std](https://github.com/async-rs/async-std) and is inspired by the [multisock](https://crates.io/crates/multisock) crate.\n\n## Example\n\n```rs\nuse async_std::prelude::*;\nuse async_uninet::{Listener, SocketAddr};\n...\n\nlet address = SocketAddr::from_str(\"unix:/tmp/sock\").await.unwrap(); // use unix socket\nlet address = SocketAddr::from_str(\"127.0.0.1:4445\").await.unwrap(); // use tcp address\nlet listener = Listener::bind(\u0026address).await.unwrap();\n\nwhile let Some(stream) = listener.incoming().next().await {\n    ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpepermint%2Fasync-uninet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpepermint%2Fasync-uninet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpepermint%2Fasync-uninet/lists"}