Linux系统调用之send/sendto/sendmsg函数解析
【send/sendto/sendmsg系统调用】 功能描述:发送消息。send只可用于基于连接的套接字,send 和 write唯一的不同点是标志的存在,当标志为0时,send等同于write。sendto 和 sendmsg既可用于无连接的套接字,也可用于基于连接的套接字。除了套接字设置为非阻塞模式,调用将会阻塞直到数据被发送完。用法: #include <sys/types.h>#include <sys/socket.h>...