evbuffer_eol_style

Used to tell evbuffer_readln what kind of line-ending to look for.

Values

ValueMeaning
EVBUFFER_EOL_ANY

Any sequence of CR and LF characters is acceptable as an EOL.

Note that this style can produce ambiguous results: the sequence "CRLF" will be treated as a single EOL if it is all in the buffer at once, but if you first read a CR from the network and later read an LF from the network, it will be treated as two EOLs.

EVBUFFER_EOL_CRLF

An EOL is an LF, optionally preceded by a CR. This style is * most useful for implementing text-based internet protocols.

EVBUFFER_EOL_CRLF_STRICT

An EOL is a CR followed by an LF.

EVBUFFER_EOL_LF

An EOL is a LF.

Meta