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

Bind to an IPv4 address.

Parameters

address: string

The hostname to bind to.

port: number

The port to bind to

Returns

number

An error status code.