Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.neomedia
Class MediaStreamTarget

java.lang.Object
  extended by net.java.sip.communicator.service.neomedia.MediaStreamTarget

public class MediaStreamTarget
extends Object

The MediaStreamTarget contains a pair of host:port couples indicating data (RTP) and control (RTCP) locations.

Author:
Emil Ivov, Lyubomir Marinov

Constructor Summary
MediaStreamTarget(InetSocketAddress rtpTarget, InetSocketAddress rtcpTarget)
          Creates an instance of this MediaStreamTarget containing the specified RTP and RTCP target host:port couples.
 
Method Summary
 boolean equals(Object obj)
          Determines whether this MediaStreamTarget is equal to a specific Object.
 InetSocketAddress getControlAddress()
          Returns the InetSocketAddress that this MediaTarget is pointing to for all media (RTP) traffic.
 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.
 String toString()
          Returns a human-readable representation of this MediaStreamTarget instance in the form of a String value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaStreamTarget

public MediaStreamTarget(InetSocketAddress rtpTarget,
                         InetSocketAddress rtcpTarget)
Creates an instance of this MediaStreamTarget containing the specified RTP and RTCP target host:port couples.

Parameters:
rtpTarget - the InetSocketAddress that this MediaStreamTarget is supposed to indicate as a data address.
rtcpTarget - the InetSocketAddress that this MediaStreamTarget is supposed to indicate as a control address.
Method Detail

equals

public boolean equals(Object obj)
Determines whether this MediaStreamTarget is equal to a specific Object.

Overrides:
equals in class Object
Parameters:
obj - the Object to be compared to this MediaStreamTarget
Returns:
true if this MediaStreamTarget is equal to the specified obj; otherwise, false

getDataAddress

public InetSocketAddress getDataAddress()
Returns the InetSocketAddress that this MediaTarget is pointing to for all media (RTP) traffic.

Returns:
the InetSocketAddress that this MediaTarget is pointing to for all media (RTP) traffic.

getControlAddress

public InetSocketAddress getControlAddress()
Returns the InetSocketAddress that this MediaTarget is pointing to for all media (RTP) traffic.

Returns:
the InetSocketAddress that this MediaTarget is pointing to for all media (RTP) traffic.

hashCode

public int hashCode()
Returns a hash code for this MediaStreamTarget instance which is suitable for use in hash tables.

Overrides:
hashCode in class Object
Returns:
a hash code for this MediaStreamTarget instance which is suitable for use in hash tables

toString

public String toString()
Returns a human-readable representation of this MediaStreamTarget instance in the form of a String value.

Overrides:
toString in class Object
Returns:
a String value which gives a human-readable representation of this MediaStreamTarget instance

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.