public class MediaStreamTarget
extends java.lang.Object
Constructor and Description |
---|
MediaStreamTarget(java.net.InetAddress rtpAddr,
int rtpPort,
java.net.InetAddress rtcpAddr,
int rtcpPort)
Initializes a new MediaStreamTarget instance with specific
RTP and RTCP InetAddresses and ports.
|
MediaStreamTarget(java.net.InetSocketAddress rtpTarget,
java.net.InetSocketAddress rtcpTarget)
Initializes a new MediaStreamTarget instance with specific
RTP and RTCP InetSocketAddresses.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
addressesAreEqual(java.net.InetSocketAddress addr1,
java.net.InetSocketAddress addr2)
Determines whether two specific InetSocketAddress instances are
equal.
|
boolean |
equals(java.lang.Object obj)
Determines whether this MediaStreamTarget is equal to a specific
Object.
|
java.net.InetSocketAddress |
getControlAddress()
Returns the InetSocketAddress that this MediaTarget is
pointing to for all media (RTP) traffic.
|
java.net.InetSocketAddress |
getDataAddress()
Returns the InetSocketAddress that this MediaTarget is
pointing to for all media (RTP) traffic.
|
int |
hashCode()
Returns a hash code for this MediaStreamTarget instance which is
suitable for use in hash tables.
|
java.lang.String |
toString()
Returns a human-readable representation of this
MediaStreamTarget instance in the form of a String
value.
|
public MediaStreamTarget(java.net.InetSocketAddress rtpTarget, java.net.InetSocketAddress rtcpTarget)
rtpTarget
- the InetSocketAddress that the new instance is
to indicate as a data/RTP address.rtcpTarget
- the InetSocketAddress that the new instance is
to indicate as a control/RTCP address.public MediaStreamTarget(java.net.InetAddress rtpAddr, int rtpPort, java.net.InetAddress rtcpAddr, int rtcpPort)
rtpAddr
- the InetAddress that the new instance is to
indicate as the IP address of a data/RTP addressrtpPort
- the port that the new instance is to indicate as the port
of a data/RTP addressrtcpAddr
- the InetAddress that the new instance is to
indicate as the IP address of a control/RTCP addressrtcpPort
- the port that the new instance is to indicate as the port
of a control/RTCP addresspublic static boolean addressesAreEqual(java.net.InetSocketAddress addr1, java.net.InetSocketAddress addr2)
addr1
- one of the InetSocketAddress instances to be
comparedaddr2
- the other InetSocketAddress instance to be comparedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the Object to be compared to this
MediaStreamTargetpublic java.net.InetSocketAddress getDataAddress()
public java.net.InetSocketAddress getControlAddress()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.