Comtrol eCos User Manual
Page 430
Advertising
Chapter 26. Sockets
void *optval, socklen_t *optlen);
int (*setsockopt)( cyg_file *fp, int level, int optname,
const void *optval, socklen_t optlen);
int (*sendmsg)
( cyg_file *fp, const struct msghdr *m,
int flags, ssize_t *retsize );
int (*recvmsg)
( cyg_file *fp, struct msghdr *m,
socklen_t *namelen, ssize_t *retsize );
};
It should be obvious from the names of these functions which API calls they provide support for. The
get-
name()
function pointer provides support for both
getsockname()
and
getpeername()
while the
sendmsg()
and
recvmsg()
function pointers provide support for
send()
,
sendto()
,
sendmsg()
,
recv()
,
recvfrom()
and
recvmsg()
as appropriate.
326
Advertising