R/udp.R

Defines functions udp_send

Documented in udp_send

#' UDP send
#'
#' @param message The messaage
#' @param host The host name.
#' @param port The port number
#' @export
#' @useDynLib udp udp_send_impl
udp_send <- function(message, host = "localhost", port) {
  stopifnot(is.character(message))
  stopifnot(is.character(host))
  stopifnot(is.numeric(port))
  .Call(udp_send_impl, message, host, as.integer(port))
  invisible(NULL)
}
emitanaka/anidb documentation built on Jan. 15, 2022, 8:11 a.m.