On Tue, 2010-06-01 at 12:24 +0900, hcpark wrote:
> I used
> bufferevent_free(bev);
Right. Silly me.
Felix
***
To unsubscribe, send an e-mail to majord...@freehaven.net with
unsubscribe libevent-usersin the body.
I used
bufferevent_free(bev);
-Original Message-
From: owner-libevent-us...@freehaven.net
[mailto:owner-libevent-us...@freehaven.net] On Behalf Of Felix Nawothnig
Sent: Tuesday, June 01, 2010 12:07 PM
To: libevent-us...@freehaven.net
Subject: [Libevent-users] How to close buffere
Hey.
What's the "suggested" way to close a bufferevent connection?
Currently I do:
fd = bufferevent_getfd(bev);
evutil_closesocket(fd);
... followed by a manual:
my_event_handler(bev, BEV_EVENT_EOF, NULL);
... because it doesn't seem to be called otherwise.
Is this th
Hi:
I am using libevent2. Is that a wrapper function/library to send and
receive fixed length message, or variable length message with message length
embedded in the first 2 bytes with libevent2? Thank
Regards
Hor Meng
Hi,
I am working on a http proxy program based on le-proxy. the proxy has
a feature to block requests to some special urls, then return to the
client a 403 forbidden or 302 redirect response.
I tried to do it in bufferevent readcb, here are the code sample i wrote:
static void
readcb(struct buff