Module EventMachine::Protocols::LineText2
In: lib/protocols/linetext2.rb

Methods

Constants

MaxLineLength = 16*1024
MaxBinaryLength = 32*1024*1024

Public Instance methods

Stub. Should be subclassed by user code.

Stub. Should be subclassed by user code.

Called internally but also exposed to user code, for the case in which processing of binary data creates a need to transition back to line mode. We support an optional parameter to "throw back" some data, which might be an umprocessed chunk of the transmitted binary data, or something else entirely.

In case of a dropped connection, we‘ll send a partial buffer to user code when in sized text mode. User overrides of receive_binary_data need to be aware that they may get a short buffer.

[Validate]