All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.nodeos.pj_PortAddressMask
java.lang.Object
   |
   +----edu.utah.janos.nodeos.pj_PortAddressMask

  Summary

class  pj_PortAddressMask
     extends java.lang.Object
     implements edu.utah.janos.nodeos.pj_ProtocolLayer.PacketAddressMask
{
          // Fields 4
     pj_InetAddressMask destMask;
     int destPort;
     pj_InetAddressMask srcMask;
     int srcPort;

          // Constructors 1
     public pj_PortAddressMask();

          // Methods 7
     public boolean equals(Object);
     public int hashCode();
     boolean matchPacket(DatagramPacket);
     boolean matchSocket(Socket);
     public void parseAddressMask(String) throws PacketAddressFormatException;
     int priority();
     public String toString();
}

Mask for PortAddresses.

Author:
Janos Ministry of Development




  Fields

· srcMask

Summary  |  Top

   pj_InetAddressMask srcMask


· srcPort

Summary  |  Top
   int srcPort


· destPort

Summary  |  Top
   int destPort


· destMask

Summary  |  Top
   pj_InetAddressMask destMask


  Constructors

· pj_PortAddressMask

Summary  |  Top

   public pj_PortAddressMask() 

Default constructor



  Methods

· parseAddressMask

Summary  |  Top
   public void parseAddressMask(String addr)  throws PacketAddressFormatException

Parses UDP address mask strings. The format is: ":::

Implements:
parseAddressMask in interface pj_ProtocolLayer.PacketAddressMask


· matchPacket

Summary  |  Top
   boolean matchPacket(DatagramPacket dp) 

Check for a match between our mask and the datagram packet



· matchSocket

Summary  |  Top
   boolean matchSocket(Socket sock) 


· priority

Summary  |  Top
   int priority() 


· hashCode

Summary  |  Top
   public int hashCode() 
Overrides:
hashCode in class Object


· equals

Summary  |  Top
   public boolean equals(Object o) 
Overrides:
equals in class Object


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7