Node.js Ağ Modülü
Tanım ve Kullanım
Net modülü, TCP sunucuları ve TCP istemcileri oluşturmanın bir yolunu sağlar.
Sözdizimi
Net modülünü uygulamanıza dahil etmek için kullanılan sözdizimi:
var net = require('net');
Net Özellikler ve Yöntemler
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 |