nodeJS를 만든 개발자들이,
nodeJS를 이용하는 개발자들과
~한 동작을 위해서는 이러한 함수를 사용해라! 라고 약속 을 했다.
이러한 약속을 Interface 라고 하고, 우리는 Interface 들을 실행시킴으로써 애플리케이션을 만들 수 있다.
애플리케이션을 프로그래밍하기 위해서 제공되는 인터페이스를 애플리케이션 프로그래밍 인터페이스, API라고 한다.
어떤 프로그래밍 언어이든, 언어가 가진 조작장치들이 궁금하다면 API를 찾아보면 된다.
https://nodejs.org/dist/latest-v16.x/docs/api/net.html#class-netserver
Returns a new instance of http.Server.
Start a server listening for connections. A net.Server can be a TCP or an IPC server depending on what it listens to.