tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

msgtype-components (358B)


      1 #!/usr/bin/python
      2 # This Source Code Form is subject to the terms of the Mozilla Public
      3 # License, v. 2.0. If a copy of the MPL was not distributed with this
      4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      5 
      6 import sys
      7 
      8 msgid = int(sys.argv[1])
      9 protocol = (msgid >> 16)
     10 msg = (msgid - (protocol << 16))
     11 
     12 print('protocol', protocol, 'message', msg)