14 releases
0.2.4 | Jul 27, 2022 |
---|---|
0.2.3 | Jul 27, 2022 |
0.1.11 | Nov 19, 2021 |
#1 in #rmw
38 downloads per month
19KB
251 lines
rmw_upnp
English Readme
rmw_upnp : upnp port map daemon
Use
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(())
}
About
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) 代码计划。
Dependencies
~11–22MB
~340K SLoC