I've try that but unfortunately it doesn't work as expected. when request failed, libevent doesn't change errno....
2013/8/20 Mark Ellzey <[email protected]> > On Tue, Aug 20, 2013 at 09:23:36PM +0800, ????????? wrote: > > how to? or what API can I call to get the errno? > > > > #include <errno.h> > > ... > printf("%d (%s)\n", errno, strerror(errno)); > *********************************************************************** > To unsubscribe, send an e-mail to [email protected] with > unsubscribe libevent-users in the body. >
