Node.js Net Module
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
Net module သည် TCP ဆာဗာများနှင့် TCP ဖောက်သည်များကို ဖန်တီးသည့်နည်းလမ်းကို ပံ့ပိုးပေးသည်။
အထားအသို
သင့်အပလီကေးရှင်းတွင် Net module အပါအဝင် syntax သည်-
var net = require('net');
Net Properties နှင့် Methods
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 |