Class StreamPortItem

java.lang.Object
uk.co.westhawk.snmp.net.StreamPortItem

public class StreamPortItem extends Object
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 Details

    • StreamPortItem

      public StreamPortItem(String address, int newPort, ByteArrayInputStream in)
      Constructor.
      Parameters:
      address - The host address
      newPort - The remote port number
      in - The incoming message
  • Method Details

    • getHostAddress

      public String 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

      public ByteArrayInputStream getStream()
      Returns incoming message (or a copy of it).
      Returns:
      The message
    • toString

      public String toString()
      Returns the string representation.
      Overrides:
      toString in class Object
      Returns:
      The string