You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
664 B
25 lines
664 B
#' Look for a particular service
|
|
#'
|
|
#' @param query service to look for
|
|
#' @param scan_time how long to scan for services; default is 10 and
|
|
#' should not really be that much lower in most networks.
|
|
#' @param proto "`ipv4`" or "`ipv6`"
|
|
#' @return data frame
|
|
#' @export
|
|
bnjr_query <- function(query, scan_time = 10L, proto = c("ipv4", "ipv6")) {
|
|
|
|
proto <- match.arg(tolower(trimws(proto[1])), c("ipv4", "ipv6"))
|
|
|
|
res <- int_bnjr_query(query, scan_time, proto = proto)
|
|
res <- unlist(strsplit(res, "\n"))
|
|
ndjson::flatten(res, "tbl")
|
|
|
|
}
|
|
|
|
#' @rdname bnjr_query
|
|
#' @export
|
|
bjr_query <- bnjr_query
|
|
|
|
#' @rdname bnjr_query
|
|
#' @export
|
|
mdns_query <- bnjr_query
|