8 Socket states in the client-server model.The term socket is also used for the software endpoint of node-internal inter-process communication (IPC), which often uses the same API as a network socket. In this context, a socket is externally identified to other hosts by its socket address, which is the triad of transport protocol, IP address, and port number.
Sockets are created only during the lifetime of a process of an application running in the node.īecause of the standardization of the TCP/IP protocols in the development of the Internet, the term network socket is most commonly used in the context of the Internet protocol suite, and is therefore often also referred to as Internet socket. The structure and properties of a socket are defined by an application programming interface (API) for the networking architecture. Unsourced material may be challenged and removed. Please help improve this article by adding citations to reliable sources.
This article needs additional citations for verification.