Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method UDP.prototype.getpeername
import { UDP } from "https://deno.land/std@0.170.0/node/internal_binding/udp_wrap.ts";

Populates the provided object with remote address entries.

Parameters

peername: Record<string, string | number>

An object to add the remote address entries to.

Returns

number

An error status code.