[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Line-based evbuffer?



Thanks, I'm aware of that function. However, the reads from the socket comes in with several lines at a time and the buffer does not necessarily begin with the start of a new line or end at the end of a line. In these cases the callback handler will handle the last full line first. I'm not sure if this is a bug in evbuffer_readln() or not?

On Tue, Feb 2, 2016 at 11:41 AM, Azat Khuzhin <a3at.mail@xxxxxxxxx> wrote:
On Mon, Feb 1, 2016 at 9:05 PM, Ãystein SchÃnning-Johansen
<oysteijo@xxxxxxxxx> wrote:
> Hi!
>
> Are there any tricks to make an evbuffer line-based? I would love it if I
> could read line by line from the evbuffer. Are there any tricks I can do?

evbuffer_readln() ?
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users  in the body.