Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rfc1901.py 646B

12345678910111213141516171819202122
  1. #
  2. # This file is part of pyasn1-modules software.
  3. #
  4. # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com>
  5. # License: http://snmplabs.com/pyasn1/license.html
  6. #
  7. # SNMPv2c message syntax
  8. #
  9. # ASN.1 source from:
  10. # http://www.ietf.org/rfc/rfc1901.txt
  11. #
  12. from pyasn1.type import namedtype
  13. from pyasn1.type import namedval
  14. from pyasn1.type import univ
  15. class Message(univ.Sequence):
  16. componentType = namedtype.NamedTypes(
  17. namedtype.NamedType('version', univ.Integer(namedValues=namedval.NamedValues(('version-2c', 1)))),
  18. namedtype.NamedType('community', univ.OctetString()),
  19. namedtype.NamedType('data', univ.Any())
  20. )