Flags Module

A namespace to hold protocol-defined flags

flags.reserved = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47)

Main flags:

  • flags.broadcast
  • flags.whisper
  • flags.renegotiate
  • flags.ping
  • flags.pong

Sub-flags:

  • flags.broadcast
  • flags.compression
  • flags.whisper
  • flags.handshake
  • flags.ping
  • flags.pong
  • flags.notify
  • flags.peers
  • flags.request
  • flags.resend
  • flags.response
  • flags.store
  • flags.retrieve
  • flags.retrieved

Python-implemented compression methods:

  • flags.bz2
  • flags.gzip
  • flags.lzma
  • flags.snappy
  • flags.zlib

Other implementations’ and/or planned compression methods:

  • flags.bwtc
  • flags.context1
  • flags.defsum
  • flags.dmc
  • flags.fenwick
  • flags.huffman
  • flags.lzjb
  • flags.lzjbr
  • flags.lzp3
  • flags.mtf
  • flags.ppmd
  • flags.simple