Síťový modul Node.js

❮ Vestavěné moduly


Definice a použití

Modul Net poskytuje způsob vytváření TCP serverů a TCP klientů.


Syntax

Syntaxe pro zahrnutí modulu Net do vaší aplikace:

var net = require('net');

Síťové vlastnosti a metody

Method Description
connect() Creates a new connection to the server, and returns a new Socket
createConnection() Creates a new connection to the server, and returns a new Socket
createServer() Creates a new server
isIP Checks if the specified value is an IP address
isIPv4 Checks if the specified value is an IPv4 address
isIPv6 Checks if the specified value is an IPv6 address

❮ Vestavěné moduly