Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
boB Rudis e853edb32f
switch to jsonlite
4 лет назад
R switch to jsonlite 4 лет назад
inst/tinytest stashing 4 лет назад
man now works across all interfaces 4 лет назад
src switch to jsonlite 4 лет назад
tests stashing 4 лет назад
.Rbuildignore stashing 4 лет назад
.codecov.yml R package repo initialization complete 4 лет назад
.gitignore R package repo initialization complete 4 лет назад
.travis.yml R package repo initialization complete 4 лет назад
CONDUCT.md R package repo initialization complete 4 лет назад
DESCRIPTION switch to jsonlite 4 лет назад
LICENSE stashing 4 лет назад
LICENSE.md stashing 4 лет назад
NAMESPACE switch to jsonlite 4 лет назад
NEWS.md SRV, aliases, credit 4 лет назад
README.Rmd now works across all interfaces 4 лет назад
README.md switch to jsonlite 4 лет назад
bonjour.Rproj R package repo initialization complete 4 лет назад

README.md

Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped. Signedby Signed commit% Linux buildStatus CoverageStatus Minimal RVersion License

bonjour

Discover and Query Multicast DNS (mDNS)/zeroconf Services

Description

Multicast DNS (mDNS) provides the ability to perform DNS-like operations on the local link in the absence of any conventional Unicast DNS server. Given a type of service that a client is looking for, and a domain in which the client is looking for that service, this mechanism allows clients to discover a list of named instances of that desired service, using standard DNS queries. This mechanism is referred to as DNS-based Service Discovery, or DNS-SD. Tools are provided to perform service discovery and query for specific services over multicast DNS (mDNS).

What’s Inside The Tin

The following functions are implemented:

  • bnjr_discover: Browse available services
  • bnjr_query: Look for a particular service

Installation

install.packages("bonjour", repos = c("https://cinc.rud.is", "https://cloud.r-project.org/"))
# or
remotes::install_git("https://git.rud.is/hrbrmstr/bonjour.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/bonjour")
# or
remotes::install_gitlab("hrbrmstr/bonjour")
# or
remotes::install_bitbucket("hrbrmstr/bonjour")
# or
remotes::install_github("hrbrmstr/bonjour")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(bonjour)
library(tidyverse)

# current version
packageVersion("bonjour")
## [1] '0.3.0'
bnjr_discover()
## # A tibble: 58 x 7
##    entry_type from            length name                        rclass   ttl type 
##    <chr>      <chr>            <dbl> <chr>                        <dbl> <dbl> <chr>
##  1 answer     10.1.10.20:5353     14 _adisk._tcp.local.               1    10 PTR  
##  2 answer     10.1.10.20:5353      7 _ssh._tcp.local.                 1    10 PTR  
##  3 answer     10.1.10.20:5353     12 _sftp-ssh._tcp.local.            1    10 PTR  
##  4 answer     10.1.10.20:5353      8 _eppc._tcp.local.                1    10 PTR  
##  5 answer     10.1.10.20:5353      7 _rfb._tcp.local.                 1    10 PTR  
##  6 answer     10.1.10.20:5353      7 _smb._tcp.local.                 1    10 PTR  
##  7 answer     10.1.10.20:5353      7 _nfs._tcp.local.                 1    10 PTR  
##  8 answer     10.1.10.20:5353     17 _net-assistant._udp.local.       1    10 PTR  
##  9 answer     10.1.10.20:5353     18 _companion-link._tcp.local.      1    10 PTR  
## 10 answer     10.1.10.20:5353     14 _1password4._tcp.local.          1    10 PTR  
## # … with 48 more rows
bnjr_query("_ssh._tcp.local.") %>% 
  filter(type == "AAAA") %>% 
  select(addr)
## # A tibble: 9 x 1
##   addr                                   
##   <chr>                                  
## 1 fe80::1864:a1e2:98b:44d0               
## 2 2603:3005:146a:8000:189b:85a2:64f5:598f
## 3 2603:3005:146a:8000:c98:42f7:9943:4b73 
## 4 fe80::18f8:a74b:6a0d:9175              
## 5 fe80::c24:9c04:594:5f28                
## 6 2603:3005:146a:8000:1459:ebc3:42dc:5ae2
## 7 2603:3005:146a:8000:14b9:cc5f:f330:90f8
## 8 fe80::1041:d138:41f8:efd5              
## 9 2603:3005:146a:8000:c95:dcb9:cc3a:d030

bonjour Metrics

Lang # Files (%) LoC (%) Blank lines (%) # Lines (%)
C/C++ Header 2 0.10 1062 0.34 178 0.28 152 0.28
C++ 2 0.10 468 0.15 114 0.18 42 0.08
R 5 0.25 26 0.01 13 0.02 46 0.08
Rmd 1 0.05 13 0.00 17 0.03 31 0.06
SUM 10 0.50 1569 0.50 322 0.50 271 0.50

clock Package Metrics for bonjour

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.