tcp_sendmsg working

From: linux lover
Date: Wed Jun 09 2004 - 01:50:56 EST



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
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html