Skip to main content
Module

x/easyts/net/mod.ts

js library written with ts, use select and chan like golang in js.
import * as easyts from "https://deno.land/x/easyts@0.1.0/net/mod.ts";

Classes

An IPNet represents an IP network.

Functions

combines host and port into a network address of the form "host:port". If host contains a colon, as found in literal IPv6 addresses, then JoinHostPort returns "[host]:port".

parses s as a CIDR notation IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291.

SplitHostPort splits a network address of the form "host:port", "host%zone:port", "[host]:port" or "[host%zone]:port" into host or host%zone and port.