available data to write or read

Marc Lehmann schmorp at schmorp.de
Wed May 27 23:30:39 CEST 2009


On Thu, May 28, 2009 at 01:23:44AM +0400, blacksand blacksand <blacksand at list.ru> wrote:
> How about to add field in ev_io to get available data to write or read. It will be comfortably for kqueue() case ?

if you mean the _amount_, then libev doesn't have this information, so can't
provide it.

even if the kernel interface provides some hint, it's just a hint, and you
still have to try reading to find how much is actually there.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg at goof.com
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list