All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

class  AddressSpecPortAddr
     extends java.lang.Object
     implements edu.utah.janos.nodeos.AddressSpec
{
          // Fields 6
     static final InetAddress WILDCARD_ADDRESS;
     static final int WILDCARD_PORT;
     private InetAddress daddr;
     private int dport;
     private InetAddress saddr;
     private int sport;

          // Constructors 1
     AddressSpecPortAddr(String) throws PacketAddressFormatException;

          // Methods 8
     InetAddress destAddr();
     int destPort();
     public boolean equals(Object);
     public int hashCode();
     public void parseAddress(String) throws PacketAddressFormatException;
     InetAddress sourceAddr();
     int sourcePort();
     public String toString();
}

Provides a ip:port support for various protocols that support 16-bit port ids coupled with a 32-bit IP-like address.

This is the internal representation of most "AddressSpec"'s.

Author:
Janos Ministry of Development




  Fields

· WILDCARD_ADDRESS

Summary  |  Top

   static final InetAddress WILDCARD_ADDRESS


· WILDCARD_PORT

Summary  |  Top
   static final int WILDCARD_PORT


· saddr

Summary  |  Top
   private InetAddress saddr

Source internet address for this AddressSpec


· sport

Summary  |  Top
   private int sport

Source port this AddressSpec represents.


· daddr

Summary  |  Top
   private InetAddress daddr

Destination internet address for this AddressSpec


· dport

Summary  |  Top
   private int dport

Destination port this AddressSpec represents.


  Constructors

· AddressSpecPortAddr

Summary  |  Top

   AddressSpecPortAddr(String addr)  throws PacketAddressFormatException


  Methods

· parseAddress

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

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

XXX should make this private, require all users to come through the constructor.

Implements:
parseAddress in interface AddressSpec


· destAddr

Summary  |  Top
   InetAddress destAddr() 


· destPort

Summary  |  Top
   int destPort() 


· sourceAddr

Summary  |  Top
   InetAddress sourceAddr() 


· sourcePort

Summary  |  Top
   int sourcePort() 


· hashCode

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


· equals

Summary  |  Top
   public boolean equals(Object o) 

Two AddressSpecPortAddr objects are equal if the source and destination ports and addresses are equal.

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