The msghdr structure is used by the recvmsg() and sendmsg() functions.

Public Attributes#

void *

ancillary data

ancillary data buffer length

int

flags on received message

struct iovec *

scatter/gather array

void *

ptr to socket address structure

size of socket address structure

Public Attribute Documentation#

msg_control#

void* msghdr::msg_control

ancillary data


msg_controllen#

socklen_t msghdr::msg_controllen

ancillary data buffer length


msg_flags#

int msghdr::msg_flags

flags on received message


msg_iov#

struct iovec* msghdr::msg_iov

scatter/gather array


msg_iovlen#

int msghdr::msg_iovlen

elements in msg_iov#


msg_name#

void* msghdr::msg_name

ptr to socket address structure


msg_namelen#

socklen_t msghdr::msg_namelen

size of socket address structure