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.
19 lines
511 B
19 lines
511 B
#' Printer for gdns contexts
|
|
#'
|
|
#' @param x gdns context object
|
|
#' @param ... unused
|
|
#' @keywords internal
|
|
#' @export
|
|
print.gctx <- function(x, ...) {
|
|
if (is_null_xptr_(x)) {
|
|
cat("<gdns v", gdns_lib_version(), " resolver context (INVALID)>\n")
|
|
} else {
|
|
cat(
|
|
"<gdns v", gdns_lib_version(),
|
|
" resolver context; resolvers: [",
|
|
paste0(int_get_resolvers(x), collapse=", "),
|
|
"]; timeout: ", prettyNum(gdns_get_timeout(x), big.mark=","), " ms",
|
|
">", "\n", sep = ""
|
|
)
|
|
}
|
|
}
|