The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

RPC::Lite::MessageQuantizer -- "Quantizes" messages to/from streams.

DESCRIPTION

RPC::Lite::MessageQuantizer packs and unpacks message to/from streams that should be written using a transport layer.

Quantize( $stream )

Retuns a hash ref with the following members:

messages

An array reference of the available messages.

remainder

The remainder of the stream.

Returns undef if unable to quantize.

Pack( $message )

Packs a message for writing to a transport stream.

Returns the packed message.