Subject: Re: SOCK_SEQPACKET UNIX domain socket patch
To: None <jesseoff@yahoo.com>
From: None <cgd@broadcom.com>
List: tech-kern
Date: 04/14/2003 22:45:41
At Tue, 15 Apr 2003 05:39:55 +0000 (UTC), "Jesse Off" wrote:
> Attached is a diff against 1.6.1 for support of
> SOCK_SEQPACKET UNIX domain sockets.  Currently in
> NetBSD SOCK_DGRAM sockets are not flow controlled and
> once the receive buffer is full, writes return EINVAL
> (or ENOBUF, as of a few days ago).  Furthermore, there
> is no way for a process to block until the condition
> passes. i.e. select() won't work and the end user ends
> up having to sleep and retry.  A SOCK_SEQPACKET socket
> behaves a little like a SOCK_STREAM in that it is flow
> controlled and connection oriented, but the
> read/writes have the semantics of a SOCK_DGRAM.

This seems pretty cool (to me at least).

Do you have any simple test programs that verify that they are working
as intended?




chris