| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
Protocols
Protocols.Line
Protocols.Line.imap_style

# Class Protocols.Line.imap_style

Description

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

Inherit simple

  inherit simple : simple

Variable literal_length

  `int Protocols.Line.imap_style.literal_length`

Description

  Length in bytes of the literal to read.

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 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()