Skip to main content
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method TCP.prototype.getsockname
import { TCP } from "https://deno.land/std@0.114.0/node/internal_binding/tcp_wrap.ts";

Populates the provided object with local address entries.

Parameters

sockname: Record<string, never> | AddressInfo

An object to add the local address entries to.

Returns

number

An error status code.