hi,all
i am a newbie to libevent.
i use libevent to build my application's network framework. it works
well. but there are still some questions about it.
data reading from network work very well.
but data i want to write to network are not very reliable when
about
On Oct 30, 2006, at 1:11 AM, cwinl wrote:
hi,all
i am a newbie to libevent.
i use libevent to build my application's network framework. it works
well. but there are still some questions about it.
data reading from network work very well.
but data i want to write t
> -Original Message-
> From: Scott Lamb [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 31, 2006 6:20 AM
> To: cwinl
> Cc: libevent-users@monkey.org
> Subject: Re: [Libevent-users] questions about bufferevent
>
> On Oct 30, 2006, at 1:11 AM, cwinl wrote:
&
On Oct 30, 2006, at 6:11 PM, cwinl wrote:I doubt your problems are because of incorrect use of bufferevent_write. I bet one of the following things is happening: i agree with you . i also suspect my usage of bufferevent_write. can you illustrate an example ? Afraid not; I've never actually us
On 10/30/06, cwinl <[EMAIL PROTECTED]> wrote:
i also suspect my usage of bufferevent_write.
can you illustrate an example ?
(Sorry if I mess this up; my first real mailing list post...)
When I wrote a simple chat proxy using bufferevents, I added a
bufferevent_enable(EV_WRITE) in my read c
Hi Matt,
that's about right. You get the write callback when the write buffer
is below the watermark (which is usually 0 bytes). You either supply
more data then or disable the write callback. It get's automatically
reneabled when you call bufferevent_write.
Niels.
On 10/31/06, Matt Pearson
From: "Matt Pearson" <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
> It's pretty spectacular stuff, I had a fairly average xp box doing > 10k
sockets
> (through an external interface, no cheatingly going through localhost)
Did you get to 10k+ sockets in your first effort, or did you have to
tw
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Niels Provos
> Sent: Wednesday, November 01, 2006 5:34 AM
> To: Matt Pearson
> Cc: libevent-users@monkey.org
> Subject: Re: [Libevent-users] questions about bufferevent
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Niels Provos
> Sent: Wednesday, November 01, 2006 5:34 AM
> To: Matt Pearson
> Cc: libevent-users@monkey.org
> Subject: Re: [Libevent-users] questions about bufferevent
>