Base Module (C++ Implementation)

C++ implementation of some base functions

class py2p.cbase.flags

Storage container for protocol level flags

Note

This is not actually a class, it just makes it formatted much neater to treat it as such. In the C++ implementation this is a module. You should not need to import it.

Main flags:

  • broadcast
  • waterfall
  • whisper
  • renegotiate
  • ping
  • pong

Sub-flags:

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

C++-planned compression methods:

Other implementations’ and/or planned compression methods:

py2p.cbase.InternalMessage

alias of pathfinding_message

class py2p.cbase.protocol

C implementation of the protocol object

__init__

x.__init__(…) initializes x; see help(type(x)) for signature

encryption

Return the protocol encryption method

id

Return the protocol ID

subnet

Return the protocol subnet name