Networking

Socket

ystc1247 2023. 4. 24. 07:49

Socket = IP Address + Port Number

 

Interface: A socket is an endpoint in a network communication system, providing an interface for data exchange between two devices or programs over a network.
Protocol Support: Sockets support various communication protocols, with the most common being TCP/IP (Transmission Control Protocol/Internet Protocol) and UDP (User Datagram Protocol).
Addressing: Each socket is identified by an IP address and a port number, which enables proper routing of data between different devices on a network.
Types: Sockets can be classified into two main types - stream sockets (reliable, connection-oriented, and based on TCP) and datagram sockets (unreliable, connectionless, and based on UDP).
Applications: Sockets are widely used in networking applications, enabling communication between clients and servers, as well as data transfer between different processes on the same or different devices.