Skip to main content
Go to Latest
method TCP.prototype.getpeername
import { TCP } from "https://deno.land/std@0.147.0/node/internal_binding/tcp_wrap.ts";

Populates the provided object with remote address entries.

Parameters

peername: Record<string, never> | AddressInfo

An object to add the remote address entries to.

Returns

number

An error status code.