Get a socket option.

socket_get_option(
  socket,
  level = "socket",
  option,
  type = c("int", "logical", "timeval", "linger", "raw"),
  size = 256L
)

Arguments

socket

A socketR socket handle.

level

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

option

Option name or native numeric constant.

type

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

size

Maximum raw option size.

Value

The option value.