Node.js Net - Modul

❮ Eingebaute Module


Definition und Verwendung

Das Net-Modul bietet eine Möglichkeit, TCP-Server und TCP-Clients zu erstellen.


Syntax

Die Syntax zum Einbinden des Net-Moduls in Ihre Anwendung:

var net = require('net');

Netzeigenschaften und Methoden

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

❮ Eingebaute Module