Skip to main content
Go to Latest
method TCP.prototype.bind
import { TCP } from "https://deno.land/std@0.147.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.