Crates.io | rmw-upnp |
lib.rs | rmw-upnp |
version | 0.2.4 |
source | src |
created_at | 2021-11-16 05:52:14.437263 |
updated_at | 2022-07-27 09:10:17.779877 |
description | upnp port map daemon |
homepage | |
repository | https://github.com/rmw-lib/rmw_upnp |
max_upload_size | |
id | 482501 |
size | 60,372 |
rmw_upnp : upnp port map daemon
use anyhow::Result;
use rmw_upnp::daemon;
#[async_std::main]
async fn main() -> Result<()> {
fern::Dispatch::new()
.level(log::LevelFilter::Info)
.level_for("surf", log::LevelFilter::Warn)
.chain(std::io::stdout())
.apply()?;
let sleep_seconds = 60;
let port = 12345;
daemon("test_rmw_upnp", port, sleep_seconds).await;
Ok(())
}
This project is part of rmw.link Code Project
rmw_upnp : upnp 守护进程
use anyhow::Result;
use rmw_upnp::daemon;
#[async_std::main]
async fn main() -> Result<()> {
fern::Dispatch::new()
.level(log::LevelFilter::Info)
.level_for("surf", log::LevelFilter::Warn)
.chain(std::io::stdout())
.apply()?;
let sleep_seconds = 60;
let port = 12345;
daemon("test_rmw_upnp", port, sleep_seconds).await;
Ok(())
}
本项目隶属于 人民网络 (rmw.link) 代码计划。