tech-userlevel archive

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

Re: datagram vs stream sockets

In article <>,
Emmanuel Dreyfus <> wrote:
>Greg Troxel <> wrote:
>> Why don't you have a real /dev/fuse, and then just have libperfuse
>> tunnel to it like a pty?
>Because the point of filesystem in userspace is to avoid kernel

I don't see the problem here. You have a stream socket with non-blocking
I/O and you keep reading and processing packets as long as you don't run
out of data. When you run out of data to process, you keep the last partial
packet and you prepend it on the next read.


Home | Main Index | Thread Index | Old Index