Re: Will AF_UNIX drop packets ever?

From: H. Peter Anvin (hpa@zytor.com)
Date: Wed Mar 05 2003 - 17:24:52 EST


David S. Miller wrote:
> From: "H. Peter Anvin" <hpa@zytor.com>
> Date: 5 Mar 2003 13:24:58 -0800
>
> Question... I have heard conflicting info if (AF_UNIX, SOCK_DGRAM)
> sockets will drop packets or not. I would appreciate a conclusive
> answer for the Linux kernel specifically. Alternatively, is (AF_UNIX,
> SOCK_SEQPACKET) implemented in Linux?
>
> If sendmsg returns no errors, we reliably send the data and
> do not drop it.

Cool. I needed an IPC which preserve record boundaries, and it just
seems pointless to encapsulate the packets into a stream just to have
them unencapsulated at the end -- especially since it means the read
needs multiple system calls.

> We don't have AF_UNIX/SEQPACKET, but we do have AF_UNIX/STREAM.

Right, of course.

Thanks,

        -hpa

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:01 EST