Class Protocols.Line.imap_style

Inheritance graph
Protocols.Line.simple Protocols.Line.imap_style Protocols.IMAP.server
Description

Nonblocking line-oriented I/O with support for reading literals.


Inherit simple

inherit simple : simple


Variable handle_line

function(string:void) Protocols.Line.imap_style.handle_line

Description

This function will be called once for every line that is received.

Note

This API is provided for backward compatibility; overload handle_command() instead.

See also

Protocols.Line.simple()->handle_command()


Variable handle_literal

function(string:void) Protocols.Line.imap_style.handle_literal

Description

If this variable has been set, literal_length bytes will be accumulated, and this function will be called with the resulting data.

Note

handle_literal() is one-shot, ie it will be cleared when it is called.


Variable literal_length

int Protocols.Line.imap_style.literal_length

Description

Length in bytes of the literal to read.