rmw-upnp

Crates.iormw-upnp
lib.rsrmw-upnp
version0.2.4
sourcesrc
created_at2021-11-16 05:52:14.437263
updated_at2022-07-27 09:10:17.779877
descriptionupnp port map daemon
homepage
repositoryhttps://github.com/rmw-lib/rmw_upnp
max_upload_size
id482501
size60,372
gcxfd (gcxfd)

documentation

README

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) 代码计划。

人民网络海报

Commit count: 9

cargo fmt