Set a socket option.

socket_set_option(
  socket,
  level = "socket",
  option,
  value,
  type = c("int", "logical", "timeval", "linger", "raw")
)

Arguments

socket

A socketR socket handle.

level

Option level such as "socket" or "tcp".

option

Option name or native numeric constant.

value

Value matching type.

type

Value type: "int", "logical", "timeval", "linger", or "raw".

Value

Invisibly, the socket handle.