tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: datagram vs stream sockets

On Sat, Sep 11, 2010 at 10:00:19AM -0400, der Mouse wrote:
> A limited form of this could be achieved by wrapping read and write
> with something that puts framing bytes around records so as to preserve
> record boundaries through an underlying transport (AF_LOCAL
> SOCK_STREAM) that does not inherently do so.  But it would be difficult
> to make that work without breaking other uses of read and write in the
> same code.

If you wrap open (or do something specific when the file is opened)
the code that intercepts read/write can know the fd number on which
it must add/remove the headers....


David Laight:

Home | Main Index | Thread Index | Old Index