# # #socket
Background: The data link layer, the network layer, and the Transport Layer protocol are all implemented in the kernel.
Purpose: Socket and XTi (the latter is not used)
Function:
1. copy the application layer data from the user buffer to the TCP/UDP kernel send buffer to deliver the kernel send data (send function) or copy data from the kernel TCP/UDP receive buffer to the user buffer to read the data
2. The application can fine-tune the behavior of the underlying communication by modifying certain header information or other data structures in the layer protocols in the kernel.
Features: A set of common network programming interface. Not only can access the TCP/UDP protocol stack in the kernel, but also can access other network protocol stacks (such as X. Protocol stack, UNIX local domain protocol stack)
Linux High Performance Network programming socket for reading notes