On Sat, Mar 27, 2010 at 07:21:52PM +0000, Chris Dew <[email protected]> 
wrote:
> // Lots of globals, what's the best way to get rid of these?

put them into a struct, maybe together with the watcher(s), and put it's
address intot eh data pointer (or or some othe rtechnique described in the
libev manual).

>     // Echo it back.
>     // WARNING: this is probably not the right way to do it with libev.
>     // Question: should we be setting a callback on sd becomming writable

With TCP, yes, udp effectively never blocks, when the queue is full
instead the packet will be dropped (usually with ENOBUFS).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to