socket

A socket refers collectively to a computer's IP address and IP sub-address, or the port number.

In an IP communication, IP addresses, which are generally composed of numerous (65,536) ports, are bonded to ports from other IP addresses and dispatched together. The IP address and port number group are assigned upon establishing a connection, and these groups are what are referred to as sockets.

Put another way, a socket specifies an IP communication's "building" (IP address) and "floor" (port) before transmitting it.

Also, socket refers to the virtual interface that handles TCP/IP application software, which in turn transmits IP communications.

As the application software designates the socket (port group), data can be sent and received without considering communication procedure details.

A shared library (software component) known as the "TCP/IP protocol stack" is what actually handles the IP communication transmission.

The set up scheme, in which 4.2BSD is set up at the same time that TCP/IP is mounted, has dramatically simplified programming that uses the network. This scheme, adapted to Windows, is known as Winsock.