tcp_sendmsg working

[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!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux