|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.rtp.SessionAddress
Class to encapsulate a pair of internet address and a pair of ports for use in RTPSM methods.
Field Summary | |
static int |
ANY_PORT
|
Constructor Summary | |
SessionAddress()
Constructor to create an "empty" RTPSesionAddress. |
|
SessionAddress(java.net.InetAddress dataAddress,
int dataPort)
Constructor to create an SessionAddress given the data internet address and data port. |
|
SessionAddress(java.net.InetAddress dataAddress,
int dataPort,
java.net.InetAddress controlAddress,
int controlPort)
Constructor to create an SessionAddress given both internet address and ports. |
|
SessionAddress(java.net.InetAddress dataAddress,
int dataPort,
int timeToLive)
Constructor to create an SessionAddress given the data internet address and data port. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.net.InetAddress |
getControlAddress()
Access method to get the control address of this SessionAddress. |
java.lang.String |
getControlHostAddress()
Returns the IP address string of the control address host. |
int |
getControlPort()
Access method to get the control port of this SessionAddress. |
java.net.InetAddress |
getDataAddress()
Access method to get the data address of this SessionAddress. |
java.lang.String |
getDataHostAddress()
Returns the IP address string of the data address host. |
int |
getDataPort()
Access method to get the data port of this SessionAddress. |
int |
getTimeToLive()
Returns the time-to-live value for mutlicast sessions. |
int |
hashCode()
|
void |
setControlHostAddress(java.net.InetAddress controlAddress)
Access method to set the control address of this SessionAddress. |
void |
setControlPort(int controlPort)
Access method to set the control port of this SessionAddress. |
void |
setDataHostAddress(java.net.InetAddress dataAddress)
Access method to set the data address of this SessionAddress. |
void |
setDataPort(int dataPort)
Access method to set the data port of this SessionAddress. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ANY_PORT
Constructor Detail |
public SessionAddress(java.net.InetAddress dataAddress, int dataPort)
dataAddress
- The data address. dataPort
- The data port. If this value is passed as the
constant ANY_PORT, the object
will not represent a specific data port. public SessionAddress(java.net.InetAddress dataAddress, int dataPort, int timeToLive)
dataAddress
- The data address. dataPort
- The data port. If this value is passed as the
constant ANY_PORT, the object
will not represent a specific data port. timeToLive
- The time-to-live parameter for multicast sessions public SessionAddress(java.net.InetAddress dataAddress, int dataPort, java.net.InetAddress controlAddress, int controlPort)
dataAddress
- The data address. dataPort
- The data port. If this value is passed as the
constant ANY_PORT, the object
will not represent a specific data port. controlAddress
- The control address. controlPort
- The control port. If this value is passed as
the constant ANY_PORT, the
object will not represent a specific control port. public SessionAddress()
Method Detail |
public int getTimeToLive()
public java.net.InetAddress getDataAddress()
public void setDataHostAddress(java.net.InetAddress dataAddress)
public void setDataPort(int dataPort)
public java.lang.String getDataHostAddress()
public int getDataPort()
public java.net.InetAddress getControlAddress()
public void setControlHostAddress(java.net.InetAddress controlAddress)
public void setControlPort(int controlPort)
public java.lang.String getControlHostAddress()
public int getControlPort()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |