S3 generic to send an R object to a location that may be method-defined. Message objects encapsulate a payload along with an address, but other classes require a destination as the x argument, either through a FD class, or as a character hostname.

send(x, ...)
send.Message(x, header, payload=NULL, keep_conn=FALSE, ...)
send.FD(x, header, payload=NULL, keep_conn=FALSE, ...)
send.character(x, port, header, payload=NULL, keep_conn=FALSE, ...)

Arguments

x

Destination, or object encapsulating one, serving as S3 dispatch.

...

Passed on to further methods.

Value

Typically a File Descriptor of the connection if successful. -1L if connection is not kept.

See also

send, start

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--  or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, ...) 
{
    stopifnot(ORCV_GLOBAL$STARTED)
    stopifnot(length(x) > 0)
    UseMethod("send", x)
  }
#> function (x, ...) 
#> {
#>     stopifnot(ORCV_GLOBAL$STARTED)
#>     stopifnot(length(x) > 0)
#>     UseMethod("send", x)
#>   }
#> <environment: 0x55fcec567760>