Table Of Contents

Previous topic

Blitz Logger - Internal Documentation

Next topic

blitz.data

This Page

blitz.constants

CommunicationCodes

class blitz.constants.CommunicationCodes[source]

Provides “static” communication codes for Tcp Communication. Usage is:

from blitz.constants import CommunicationCodes
tcp.send(CommunicationCodes.Acknowledge)
classmethod composite(base_code, code_id)[source]

A class method which builds a communication code of more than one part such as a download or error command.

Usage:

>>> CommunicationCodes.composite(CommunicationCodes.Download, 1)
"DOWNLOAD 1"