All Packages Class Hierarchy This Package Previous Next Index
Class jsnmp.SnmpPDU
java.lang.Object
|
+----jsnmp.SnmpPDU
- public class SnmpPDU
- extends Object
-
command
-
-
community
-
-
error_number
-
-
errorIndex
-
-
errorStatus
-
-
requestID
-
-
varBinds
-
-
version
-
-
SnmpPDU()
-
-
SnmpPDU(byte, int, String)
-
-
addVarBind(SnmpOID, SnmpVar)
-
-
buildAuth(int)
-
-
decode(byte[])
-
-
decodeType(ByteArrayInputStream, byte)
- local method to check for errors while decoding an SNMP var
-
encode()
-
-
getCommunity()
-
-
getErrorIndex()
-
-
getErrorStatus()
-
-
getVarBinds()
-
-
parseAuth(ByteArrayInputStream)
-
error_number
public static String error_number[]
command
private byte command
requestID
private int requestID
errorStatus
private int errorStatus
errorIndex
private int errorIndex
community
private String community
varBinds
private Vector varBinds
version
private int version
SnmpPDU
public SnmpPDU()
SnmpPDU
public SnmpPDU(byte command,
int requestID,
String community)
addVarBind
public void addVarBind(SnmpOID oid,
SnmpVar variable)
getErrorStatus
public int getErrorStatus()
getErrorIndex
public int getErrorIndex()
getVarBinds
public Vector getVarBinds()
getCommunity
public String getCommunity()
encode
public byte[] encode()
decode
public void decode(byte data[]) throws SnmpException
parseAuth
private void parseAuth(ByteArrayInputStream b) throws SnmpException
buildAuth
private byte[] buildAuth(int length)
decodeType
private SnmpVar decodeType(ByteArrayInputStream b,
byte type) throws SnmpException
- local method to check for errors while decoding an SNMP var
All Packages Class Hierarchy This Package Previous Next Index