com.adventnet.snmp.snmp2
Class UDPCommunication

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.adventnet.snmp.snmp2.UDPCommunication

public class UDPCommunication
extends java.lang.Thread


Field Summary
(package private)  java.util.Hashtable responseList
           
(package private)  java.util.Hashtable timeOutTable
           
(package private)  UDPTransportImpl udpt
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, values
 
Constructor Summary
UDPCommunication()
           
 
Method Summary
 byte[] getData(int requestID)
           
(package private) static int getRequestID(byte[] b)
           
 void run()
           
 void sendData(byte[] data, java.lang.String host, int port, long timeoutmillis)
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

udpt

UDPTransportImpl udpt

responseList

java.util.Hashtable responseList

timeOutTable

java.util.Hashtable timeOutTable
Constructor Detail

UDPCommunication

public UDPCommunication()
Method Detail

run

public void run()
Overrides:
run in class java.lang.Thread

getData

public byte[] getData(int requestID)

sendData

public void sendData(byte[] data,
                     java.lang.String host,
                     int port,
                     long timeoutmillis)
              throws java.lang.Exception

getRequestID

static int getRequestID(byte[] b)
                 throws java.lang.Exception