Pff !!! And everything with one hand. Now I understand why people
use threads and things like aio_*() calls. Pop in Nonblocking mode should work properly, but the price to pay is big hairy code Because we have to keep the state of the connection when return EAGAIN. There is lot of buffer copy all over the place .i.e when we come back from a EAGAIN, we have to reset the same state. We have two new files call bio.[ch] it stands for buffered I/O Saves me from a lot of read()/write() calls by bufferring a bit for me. Attribute added 3 new functions, attribute_{set,get,unset,is}userflag() to let someone else the library store certain attributes on a message. They are keep in a different place the the normal attributes.
Showing
7 changed files
with
324 additions
and
9 deletions
mailbox/bio.c
0 → 100644
mailbox/include/bio.h
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment