> >Here another q regarding bufferevent (with listening tcp fd). Now I got > >connection event from error cb (with error what==0x21) > > Please decode the numerical values again (if it's errno values, they're > specific to the platform you're using! but even if it's libevent values, > it's just not as readable as the symbolic constants or several of them > or'ed together). Sorry for the confusion. I learn to use bufferevent by checking code of libevent1.4.8/test/regress.c which has the error cb defined as: static void errorcb(struct bufferevent *bev, short what, void *arg) That is where the 'what' (for my case I believe 0x21 is EVBUFFER_ERROR| EVBUFFER_READ) came from. Anyway, I won't use bufferevent for listen fd later. Thank you. Arthur
_______________________________________________ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users