the use of struct MSGHDR#include
struct MSGHDR {
void * MSG_NAME; /* Message Protocol Address */protocol address and socket information, in the connectionless UDP, the sender to specify the address port, the receiver used to the data source, if not
Understanding struct msghdrWhen I first saw him, it seemed like a huge structure to be created. But don't be afraid. Its structure is defined as follows:Struct msghdr {Void * msg_name;Socklen_t msg_namelen;Struct iovec * msg_iov;Size_t
The affiliated information can include 0, 1, or more independent affiliated data objects. There is a struct before each object.Cmsghdr structure. The header is followed by the padding byte and then the object itself. Finally, more bytes may be
Main content: Socket send function system call, socket layer implementation.Kernel version: 3.15.2My blog: http://blog.csdn.net/zhangskdSend flowchartThe following is the sending flowchart for Send (), sendto (), sendmsg (), and sendmmsg (), which
Inter-process descriptor transfer in Linux
Each process has its own independent process space, which makes the descriptor transmission between processes a little complicated. This is the content of high-level inter-process communication.Descriptor
Linux TCP sending process source code analysis-socket LayerSource code analysis of the linuxTCP sending Process--Socket Layer -- lvyilong316
Kernel version: 3.15.2
Socket Data Structure Sending FlowchartThe following is the sending flowchart of send
OrderAfter a very cool national Day holiday, with a small little boyfriend parents back to their hometown tasted Chaoshan food, Nanao Island fishing shrimp, seafood support to explode, back to Shenzhen the next day little other children parents took
LINUX NetLink mechanismNetLink is a special socket that is unique to Linux, similar to the BSD Af_route but is far more powerful than it is, and is currently used in the latest Linux kernel (2.6.14) for applications with kernel communication,
Developing and maintaining the kernel is a complex task, so only code that is most important or closely related to system performance is placed in the kernel. Other programs, such as the GUI, the admin and the control part of the code, are generally
Socket connectionsA socket is a communication machine. By virtue of such a mechanism. The development of the customer/server system can be done on a local machine. Can also boast the network.There is a difference between the creation and use of
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.