Linux network code learning

Source: Internet
Author: User
Linux network code learning-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Linux network interfaces are divided into four parts: network device interface, network interface core, network protocol family, and network interface socket layer.

The network device interface is mainly responsible for receiving and sending data from physical media. The implemented file is under the linu/driver/net directory.

The core part of the network interface is the key part of the entire network interface. It provides a unified sending interface for the network protocol and shields various physical media, at the same time, it is responsible for distributing packets from lower layers to appropriate protocols. It is the central part of the network interface. Its main implementation files are in the linux/net/core directory, where linux/net/core/dev. c is the main file for management.

The network protocol family is part of the implementation of various specific protocols. Linux supports TCP/IP, IPX, X.25, AppleTalk, and other protocols. The source code of various protocols is named in the linux/net/directory. Here we mainly discuss the TCP/IP (IPv4) protocol. The source code is linux/net/ipv4, and linux/net/ipv4/af_inet.c is the main file management.

The network interface Socket layer is the programming interface for network services provided by users. The main source code is in linux/net/socket. c
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.