Module: MaxCube::Messages::TCP

Defined in:
lib/maxcube/messages/tcp.rb,
lib/maxcube/messages/tcp/parser.rb,
lib/maxcube/messages/tcp/type/a.rb,
lib/maxcube/messages/tcp/type/c.rb,
lib/maxcube/messages/tcp/type/f.rb,
lib/maxcube/messages/tcp/type/h.rb,
lib/maxcube/messages/tcp/type/l.rb,
lib/maxcube/messages/tcp/type/m.rb,
lib/maxcube/messages/tcp/type/n.rb,
lib/maxcube/messages/tcp/type/q.rb,
lib/maxcube/messages/tcp/type/s.rb,
lib/maxcube/messages/tcp/type/t.rb,
lib/maxcube/messages/tcp/type/u.rb,
lib/maxcube/messages/tcp/type/z.rb,
lib/maxcube/messages/tcp/handler.rb,
lib/maxcube/messages/tcp/serializer.rb

Overview

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.

Examples:

X:message\r\n

Defined Under Namespace

Modules: Handler Classes: Parser, Serializer

Constant Summary collapse

MSG_MAX_LEN =

Maximum length of TCP Cube message without \r\n (with it it would be 1900)

1898