Module: Ticketing::Protocol::Frame

Defined in:
lib/ticketing/protocol.rb

Overview

One framed message read off the wire: Data, or the EOF/TOO_LONG sentinels.

Defined Under Namespace

Classes: Data

Constant Summary collapse

EOF =
:eof
TOO_LONG =
:too_long

Class Method Summary collapse

Class Method Details

.data(bytes) ⇒ Object



35
36
37
# File 'lib/ticketing/protocol.rb', line 35

def self.data(bytes)
  Data.new(bytes)
end