Package uk.co.westhawk.snmp.net
Class StreamPortItem
java.lang.Object
uk.co.westhawk.snmp.net.StreamPortItem
This is a holder class that associates the incoming packet stream
 with the remote port it came from.
- Since:
 - 4_14
 - Version:
 - $Revision: 1.4 $ $Date: 2006/02/09 14:14:50 $
 - Author:
 - Birgit Arkesteijn
 
- 
Constructor Summary
ConstructorsConstructorDescriptionStreamPortItem(String address, int newPort, ByteArrayInputStream in) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the host addres where the message came from.intReturns the remote port where the message came from.Returns incoming message (or a copy of it).toString()Returns the string representation. 
- 
Constructor Details
- 
StreamPortItem
Constructor.- Parameters:
 address- The host addressnewPort- The remote port numberin- The incoming message
 
 - 
 - 
Method Details
- 
getHostAddress
Returns the host addres where the message came from.- Returns:
 - The host address
 
 - 
getHostPort
public int getHostPort()Returns the remote port where the message came from.- Returns:
 - The remote port number
 
 - 
getStream
Returns incoming message (or a copy of it).- Returns:
 - The message
 
 - 
toString
Returns the string representation. 
 -