com.adventnet.snmp.snmp2
Class UDPCommunication

java.lang.Object
  extended by java.lang.Thread
      extended by com.adventnet.snmp.snmp2.UDPCommunication
All Implemented Interfaces:
java.lang.Runnable

public class UDPCommunication
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
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
 
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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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()
Specified by:
run in interface java.lang.Runnable
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
Throws:
java.lang.Exception

getRequestID

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