com.adventnet.snmp.snmp2
Class  SnmpTransportPacket
java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpTransportPacket
- public class SnmpTransportPacket
- extends java.lang.Object
  
Class containing the options for the transport protocol used by the
 SNMP API.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SnmpTransportPacket
public SnmpTransportPacket()
- Default constructor.
 
SnmpTransportPacket
public SnmpTransportPacket(ProtocolOptions options,
                           byte[] data)
- Constructor that initializes the ProtocolOptions and the data
 given as argument.
- Parameters:
 options - The protocol options .data - The protocol data.
 
 
setProtocolOptions
public void setProtocolOptions(ProtocolOptions options)
- Sets the protocol options on the SnmpTransportPacket
- Parameters:
 options - protocol options to be set.
 
 
setProtocolData
public void setProtocolData(byte[] data)
- Sets the protocol data on the SnmpTransportPacket
- Parameters:
 data - data to be set.
 
 
getProtocolOptions
public ProtocolOptions getProtocolOptions()
- Gets the transport options configured in the Transport Packet.
- Returns:
 - reference to the transport parameter set in the Transport Packet
 for sending/receiving SNMP messages.
 
 
 
getProtocolData
public byte[] getProtocolData()
- Gets the SNMP message to be sent or received i.e. the data in the 
 Transport Packet.
- Returns:
 - reference to the data contained in this Transport Packet.
 
 
 
Copyright (c)AdventNet Inc., 1996-2004