javax.media.rtp
Class SessionAddress

java.lang.Object
  extended by javax.media.rtp.SessionAddress
All Implemented Interfaces:
java.io.Serializable

public class SessionAddress
extends java.lang.Object
implements java.io.Serializable

Standard JMF class -- see this class in the JMF Javadoc. Coding complete.

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
static int ANY_PORT
           
 
Constructor Summary
SessionAddress()
           
SessionAddress(java.net.InetAddress dataAddress, int dataPort)
           
SessionAddress(java.net.InetAddress dataAddress, int dataPort, java.net.InetAddress controlAddress, int controlPort)
           
SessionAddress(java.net.InetAddress dataAddress, int dataPort, int timeToLive)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.InetAddress getControlAddress()
           
 java.lang.String getControlHostAddress()
           
 int getControlPort()
           
 java.net.InetAddress getDataAddress()
           
 java.lang.String getDataHostAddress()
           
 int getDataPort()
           
 int getTimeToLive()
           
 int hashCode()
           
 void setControlHostAddress(java.net.InetAddress controlAddress)
           
 void setControlPort(int controlPort)
           
 void setDataHostAddress(java.net.InetAddress dataAddress)
           
 void setDataPort(int dataPort)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_PORT

public static final int ANY_PORT
See Also:
Constant Field Values
Constructor Detail

SessionAddress

public SessionAddress(java.net.InetAddress dataAddress,
                      int dataPort)

SessionAddress

public SessionAddress(java.net.InetAddress dataAddress,
                      int dataPort,
                      int timeToLive)

SessionAddress

public SessionAddress(java.net.InetAddress dataAddress,
                      int dataPort,
                      java.net.InetAddress controlAddress,
                      int controlPort)

SessionAddress

public SessionAddress()
Method Detail

getTimeToLive

public int getTimeToLive()

getDataAddress

public java.net.InetAddress getDataAddress()

setDataHostAddress

public void setDataHostAddress(java.net.InetAddress dataAddress)

setDataPort

public void setDataPort(int dataPort)

getDataHostAddress

public java.lang.String getDataHostAddress()

getDataPort

public int getDataPort()

getControlAddress

public java.net.InetAddress getControlAddress()

setControlHostAddress

public void setControlHostAddress(java.net.InetAddress controlAddress)

setControlPort

public void setControlPort(int controlPort)

getControlHostAddress

public java.lang.String getControlHostAddress()

getControlPort

public int getControlPort()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object