Sha256: 0cb117a0e02f91884cf9144041c696f0ede7bdbae12bc165f1bac523e033fcff

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

require 'maxcube/messages'

module MaxCube
  module Messages
    # This module contains classes aimed onto TCP messages of Cube protocol.
    #
    # Structure of every TCP Cube message:
    # * Starts with single letter followed by +:+
    # * Ends with +\\r\\n+
    # * Except of the end, it contains only printable characters.
    # As all messages are being split by +\\r\\n+,
    # it does not occur in single message processing,
    # only in raw data processing.
    # @example
    #   X:message\r\n
    module TCP
      # Maximum length of TCP Cube message
      # without +\\r\\n+ (with it it would be 1900)
      MSG_MAX_LEN = 1898
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maxcube-client-0.5.1 lib/maxcube/messages/tcp.rb
maxcube-client-0.5.0 lib/maxcube/messages/tcp.rb