14 releases

0.2.4 Jul 27, 2022
0.2.3 Jul 27, 2022
0.1.11 Nov 19, 2021

#1 in #rmw

32 downloads per month

Apache-2.0

19KB
251 lines

rmw_upnp

Api Doc

English | 中文说明


English Readme

rmw_upnp : upnp port map daemon

Use

→ examples/main.rs

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.link logo


中文说明

rmw_upnp : upnp 守护进程

使用

→ examples/main.rs

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–23MB
~340K SLoC