Pike v8.1 release 6

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.


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.


Inherit simple

inherit simple : simple


Variable literal_length

int Protocols.Line.imap_style.literal_length

Description

Length in bytes of the literal to read.