Namespace: net

Table of contents

Classes

Functions

Functions

Open

Open(protocol): NetConn | null

Open opens a new connection to the address with a timeout. supported protocols: tcp, udp

Parameters

NameType
protocolstring

Returns

NetConn | null

Example

const net = require('nuclei/net');
const conn = net.Open('tcp', 'acme.com:80');

Defined in

net.ts:12


OpenTLS

OpenTLS(protocol): NetConn | null

Open opens a new connection to the address with a timeout. supported protocols: tcp, udp

Parameters

NameType
protocolstring

Returns

NetConn | null

Example

const net = require('nuclei/net');
const conn = net.OpenTLS('tcp', 'acme.com:443');

Defined in

net.ts:27