Re: libevent in OpenBSD/i386 3.9-release

2006-10-19 Thread Jared Yanovich
On Thu, 19 Oct 2006 10:18:40 +0400 "Bruno Carnazzi" <[EMAIL PROTECTED]> wrote: > Is my code broken or man page not accurate ? It would appear the manual page is inaccurate. libevent/evbuffer.c: /* * Returns 0 on success; *-1 on failure. */ int bufferevent_write(struct bufferevent *b

libevent in OpenBSD/i386 3.9-release

2006-10-18 Thread Bruno Carnazzi
Hi misc, I'm currently playing with libevent and there is something that I don't understand. I've made a small echo server using bufferevent_read and bufferevent_write. Here's the read_handler : 96 void 97 client_read(struct bufferevent *bufev, void *arg) 98 { 99 char buf[BUFLEN];