Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SocketOptions

Standard Berkeley socket style options.

nodejs only.

Hierarchy

  • NativeResource
    • SocketOptions

Index

Constructors

Methods

Constructors

constructor

  • new SocketOptions(type?: SocketType, domain?: SocketDomain, connect_timeout_ms?: number, keepalive?: boolean, keep_alive_interval_sec?: number, keep_alive_timeout_sec?: number, keep_alive_max_failed_probes?: number): SocketOptions
  • Parameters

    • Default value type: SocketType = SocketType.STREAM
    • Default value domain: SocketDomain = SocketDomain.IPV6
    • Default value connect_timeout_ms: number = 5000
    • Default value keepalive: boolean = false
    • Default value keep_alive_interval_sec: number = 0
    • Default value keep_alive_timeout_sec: number = 0
    • Default value keep_alive_max_failed_probes: number = 0

    Returns SocketOptions

Methods

native_handle

  • native_handle(): any
  • Returns any

Generated using TypeDoc