|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Constructor Summary | |
StreamPortItem(java.lang.String address,
int newPort,
java.io.ByteArrayInputStream in)
Constructor. |
Method Summary | |
java.lang.String |
getHostAddress()
Returns the host addres where the message came from. |
int |
getHostPort()
Returns the remote port where the message came from. |
java.io.ByteArrayInputStream |
getStream()
Returns incoming message (or a copy of it). |
java.lang.String |
toString()
Returns the string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StreamPortItem(java.lang.String address, int newPort, java.io.ByteArrayInputStream in)
address
- The host addressnewPort
- The remote port numberin
- The incoming messageMethod Detail |
public java.lang.String getHostAddress()
public int getHostPort()
public java.io.ByteArrayInputStream getStream()
public java.lang.String toString()
toString
in class java.lang.Object
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |