【文件属性】:
文件名称:msg_control:用于处理套接字辅助数据的辅助函数
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-13 22:58:13
C
msg_control
这些辅助函数操作套接字辅助数据。 它们处理 msghdr 的 msg_control 和 msg_conrollen 成员,并保留结构的其余部分。
/* Allocate buffer for control data. The buffer will be of size zero, however,
to minimise number of (re)allocations you should specify the capacity in
such a way as o fit all the ancillary data. Returns 0 in case of success,
-1 if the buffer cannot be allocated. */
void msg_control_init (struct msghd
【文件预览】:
msg_control-master
----msg_control.h(3KB)
----test.sh(1KB)
----test.c(1KB)
----msg_control.c(5KB)
----README.md(2KB)