class TCP
extends ConnectionWrap
import { TCP } from "https://dotland.deno.dev/std@0.177.0/node/internal_binding/tcp_wrap.ts";
Methods
getpeername(peername: Record<string, never> | AddressInfo): number
Populates the provided object with remote address entries.
getsockname(sockname: Record<string, never> | AddressInfo): number
Populates the provided object with local address entries.
ref()
setKeepAlive(_enable: boolean, _initialDelay: number): number
setNoDelay(_noDelay: boolean): number
deprecated
setSimultaneousAccepts(_enable: boolean)Windows only.
Deprecated by Node. REF: https://github.com/nodejs/node/blob/master/lib/net.js#L1731
unref()