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
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
pj_InetAddressMask srcMask
int srcPort
int destPort
pj_InetAddressMask destMask
public pj_PortAddressMask()
Default constructor
public void parseAddressMask(String addr) throws PacketAddressFormatException
Parses UDP address mask strings. The format is:
":::
- Implements:
- parseAddressMask in interface pj_ProtocolLayer.PacketAddressMask
boolean matchPacket(DatagramPacket dp)
Check for a match between our mask and the datagram packet
boolean matchSocket(Socket sock)
int priority()
public int hashCode()
- Overrides:
- hashCode in class Object
public boolean equals(Object o)
- Overrides:
- equals in class Object
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