DEPRECATED [Use send specifying mode = 'raw'] Send vector data over a Socket. Data will be sent as binary without R serialisation, hence appropriate for interfacing with external programs.
send_vec(socket, data, block = FALSE, echo = TRUE)
a Socket.
a vector. Will be converted and sent as raw unless already a raw vector in which case it will be sent unmodified.
[default FALSE] logical flag whether to block until successful or return immediately even if unsuccessful (e.g. no connection available).
[default TRUE] logical flag whether to return the raw vector of sent data. Set to FALSE for performance-critical applications where invisble NULL will be returned instead.
Raw vector of sent data, or invisible NULL if 'echo' is set to FALSE.