{"id":23705691,"url":"https://github.com/ccakes/bmp-client-rs","last_synced_at":"2025-06-17T10:10:49.557Z","repository":{"id":57520405,"uuid":"246899956","full_name":"ccakes/bmp-client-rs","owner":"ccakes","description":"Async BMP client for Rust","archived":false,"fork":false,"pushed_at":"2020-06-29T16:09:17.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T00:24:37.681Z","etag":null,"topics":[],"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/ccakes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-12T18:03:11.000Z","updated_at":"2020-06-29T16:09:11.000Z","dependencies_parsed_at":"2022-09-26T18:00:53.020Z","dependency_job_id":null,"html_url":"https://github.com/ccakes/bmp-client-rs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ccakes/bmp-client-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-client-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-client-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-client-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-client-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccakes","download_url":"https://codeload.github.com/ccakes/bmp-client-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-client-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260336343,"owners_count":22993740,"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":[],"created_at":"2024-12-30T14:56:37.021Z","updated_at":"2025-06-17T10:10:44.533Z","avatar_url":"https://github.com/ccakes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bmp-client\n\nThis is a simple BMP (BGP Monitoring Protocol) client for Rust. The heavy lifting is done within the bmp-protocol crate, this just provides a simple wrapper with some convenience functions.\n\n### Usage\n\n```toml\n# Cargo.toml\n\n[dependencies]\nbmp-client = \"^0.1\"\n```\n\n```rust\n#[tokio::main]\nasync fn main() {\n    let mut tcp = TcpListener::bind(\"0.0.0.0:1790\").await.unwrap();\n\n    loop {\n        let (stream, peer) = tcp.accept().await.unwrap();\n        println!(\"Client {} connected\", peer);\n\n        tokio::spawn(async move {\n            let mut client = BmpClient::new(stream);\n\n            while let Some(message) = client.recv().await {\n                match message {\n                    Ok(message) =\u003e println!(\"Received a {} message\", message.kind),\n                    Err(error) =\u003e {\n                        eprintln!(\"{}\", error);\n                        std::process::exit(1);\n                    }\n                };\n            }\n        });\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome, the library is still very barebones.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fbmp-client-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccakes%2Fbmp-client-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fbmp-client-rs/lists"}