Node.js 넷 모듈
정의 및 사용
Net 모듈은 TCP 서버와 TCP 클라이언트를 만드는 방법을 제공합니다.
통사론
애플리케이션에 Net 모듈을 포함하기 위한 구문:
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 |