how data included in socket buffer in tcp_sendmsg function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,
     how tcp_sendmsg add message from application
layer to socket buffer skb? 
i am unable to find message field in msghdr help me.
struct msghdr {
        void    *       msg_name;       /* Socket name
                 
*/
        int             msg_namelen;    /* Length of
name               
*/
        struct iovec *  msg_iov;        /* Data blocks
                 
*/
        __kernel_size_t msg_iovlen;     /* Number of
blocks             
*/
        void    *       msg_control;    /* Per
protocol magic (eg BSD 
file descriptor passing) */
        __kernel_size_t msg_controllen; /* Length of
cmsg list */
        unsigned        msg_flags;
};
also what is use of struct iovec? is that store actual
data? if yes 
then how that is included in socket buffer?
regards,
linux_lover


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux