org.lastbamboo.common.ice
Class IcePriorityCalculator
java.lang.Object
org.lastbamboo.common.ice.IcePriorityCalculator
public class IcePriorityCalculator
- extends Object
Class for calculating ICE priorities. This includes the transport
preferences as discussed in draft-ietf-mmusic-ice-tcp-04. Since this
implementation is initially intended for file exchange and not media
sessions, we reverse the recommended TCP and UDP preferences in favor of
TCP.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IcePriorityCalculator
public IcePriorityCalculator()
calculatePriority
public static long calculatePriority(IceCandidateType type,
IceTransportProtocol transport)
- Calculates teh priority for the specified type using the default
component ID of 1 and the default local preference.
- Parameters:
type - The type of the candidate.transport -
- Returns:
- The priority.
Copyright © 2013 LittleShoot. All Rights Reserved.