Skip to main content

interp_write_socket

Function interp_write_socket 

Source
fn interp_write_socket(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Write a string to a TCP socket connection.

Writes all bytes of the string to the socket. Returns invisible NULL.

@param socket integer scalar: connection ID of a TCP socket @param string character scalar: data to write @return NULL (invisibly)