File/rfc1155.php

Description

phpsnmp - a PHP SNMP library

Copyright (C) 2004 David Eder <david@eder,us>

Based on snmp - a Python SNMP library Copyright (C) 2003 Unicity Pty Ltd <libsnmp@unicity.com.au>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Classes
Class Description
 class rfc1155_Asn1Object Asn1Objects
 class rfc1155_Boolean rfc1155 Boolean
 class rfc1155_Integer rfc1155 Integer
 class rfc1155_OctetString rfc1155 Octet String
 class rfc1155_ObjectID rfc1155 Object Identifier (oid)
 class rfc1155_Null rfc1155 Null
 class rfc1155_Sequence rfc1155 Sequence
 class rfc1155_SequenceOf rfc1155 SequenceOf
 class rfc1155_IPAddress rfc1155 IPAddress
 class rfc1155_NetworkAddress rfc1155 NetworkAddress
 class rfc1155_Counter rfc1155 Counter
 class rfc1155_Guage rfc1155 Guage
 class rfc1155_TimeTicks rfc1155 TimeTicks
 class rfc1155_Opaque rfc1155 Opaque
Includes
Constants
ASN_TAG_BOOLEAN = 0x01 (line 97)
ASN_TAG_CLASS_APPLICATION = 0x40 (line 90)
ASN_TAG_CLASS_CONTEXT = 0x80 (line 91)
ASN_TAG_CLASS_PRIVATE = 0xC0 (line 92)
ASN_TAG_CLASS_UNIVERSAL = 0x00 (line 89)
ASN_TAG_COUNTER = 0x01 (line 105)
ASN_TAG_FORMAT_CONSTRUCTED = 0x20 (line 95)
ASN_TAG_FORMAT_PRIMITIVE = 0x00 (line 94)
ASN_TAG_GUAGE = 0x02 (line 106)
ASN_TAG_INTEGER = 0x02 (line 98)
ASN_TAG_IPADDRESS = 0x00 (line 104)
ASN_TAG_NULL = 0x05 (line 100)
ASN_TAG_OBJECTID = 0x06 (line 101)
ASN_TAG_OCTETSTRING = 0x04 (line 99)
ASN_TAG_OPAQUE = 0x04 (line 108)
ASN_TAG_SEQUENCE = 0x10 (line 102)
ASN_TAG_TIMETICKS = 0x03 (line 107)
Functions
divide_with_remainder (line 82)

Divide with Remainder

This function uses float operation to do what was done with bit operations on integers previously. This is the result of PHP automatically converting large numbers to floats. PHP has no unsigned longs. One advantage is that it can handle 64 bit integers, although some precision is lost.

  • return: remainder)
array(quotient, divide_with_remainder (integer $numerator, integer $denominator)
  • integer $numerator
  • integer $denominator
hexbin (line 63)

Convert a hex string to raw data

string hexbin (string $hex)
  • string $hex
hexdump (line 42)

Dump a string in Hex and stripped ascii

string hexdump (string $string)
  • string $string

Documentation generated on Mon, 14 Nov 2005 17:54:53 -0700 by phpDocumentor 1.3.0RC3