Sha256: 560c60a95923c820603d37e242bce662134026494a574a0f6f33fd6f36be12a7

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require 'maxcube/messages'

module MaxCube
  module Messages
    # Structure of message:
    # * Starts with single letter followed by ':'
    # * Ends with "\r\n"
    # Example (unencoded):
    # X:message\r\n
    # As all messages are being split by "\r\n",
    # it does not occur in single message processing,
    # only in raw data processing.
    module TCP
      # Without "\r\n", with it it is 1900
      MSG_MAX_LEN = 1898
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maxcube-client-0.4.1 lib/maxcube/messages/tcp.rb
maxcube-client-0.4.0 lib/maxcube/messages/tcp.rb