Skip to main content

interp_make_socket

Function interp_make_socket 

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

Create a TCP client socket connection.

Connects to the specified host and port via TCP. Only client mode (server = FALSE) is currently supported. Returns a connection ID with class “connection”.

@param host character scalar: hostname or IP address to connect to @param port integer scalar: port number @param server logical scalar: whether to create a server socket (only FALSE supported) @return integer scalar with class “connection”