Node.js नेट मॉड्यूल
परिभाषा और उपयोग
नेट मॉड्यूल टीसीपी सर्वर और टीसीपी क्लाइंट बनाने का एक तरीका प्रदान करता है।
वाक्य - विन्यास
आपके आवेदन में नेट मॉड्यूल को शामिल करने के लिए सिंटैक्स:
var net = require('net');
शुद्ध गुण और तरीके
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 |