|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.media.TransportManager<CallPeerJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.TransportManagerJabberImpl
net.java.sip.communicator.impl.protocol.jabber.RawUdpTransportManager
public class RawUdpTransportManager
A TransportManagerJabberImpl implementation that would only gather a
single candidate pair (i.e. RTP and RTCP).
| Constructor Summary | |
|---|---|
RawUdpTransportManager(CallPeerJabberImpl callPeer)
Creates a new instance of this transport manager, binding it to the specified peer. |
|
| Method Summary | |
|---|---|
protected void |
closeStreamConnector(MediaType mediaType,
StreamConnector streamConnector)
Closes a specific StreamConnector associated with a specific MediaType. |
protected StreamConnector |
createStreamConnector(MediaType mediaType)
Creates a media StreamConnector for a stream of a specific MediaType. |
String |
getICECandidateExtendedType()
Returns the extended type of the candidate selected if this transport manager is using ICE. |
String |
getICEState()
Returns the current state of ICE processing. |
MediaStreamTarget |
getStreamTarget(MediaType mediaType)
Implements TransportManagerJabberImpl.getStreamTarget(MediaType). |
String |
getXmlNamespace()
Implements TransportManagerJabberImpl.getXmlNamespace(). |
void |
removeContent(String name)
Removes a content with a specific name from the transport-related part of the session represented by this TransportManagerJabberImpl which may have been reported through previous calls to the startCandidateHarvest and startConnectivityEstablishment methods. |
void |
startCandidateHarvest(List<ContentPacketExtension> theirOffer,
List<ContentPacketExtension> ourAnswer,
TransportInfoSender transportInfoSender)
Starts transport candidate harvest. |
void |
startCandidateHarvest(List<ContentPacketExtension> ourOffer,
TransportInfoSender transportInfoSender)
Starts transport candidate harvest. |
boolean |
startConnectivityEstablishment(Iterable<ContentPacketExtension> remote)
Overrides TransportManagerJabberImpl#startConnectivityEstablishment(Iterable<ContentPacketExtension>) in order to remember the remote counterpart of the negotiation between the local and the remote peer for subsequent calls to getStreamTarget(MediaType). |
List<ContentPacketExtension> |
wrapupCandidateHarvest()
Simply returns the list of local candidates that we gathered during the harvest. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.TransportManagerJabberImpl |
|---|
close, findContentByName, getCurrentGeneration, getIntendedDestination, getNextID, incrementGeneration, removeContent, wrapupConnectivityEstablishment |
| Methods inherited from class net.java.sip.communicator.service.protocol.media.TransportManager |
|---|
closeStreamConnector, getCallPeer, getICECandidateExtendedType, getLastUsedLocalHost, getNextMediaPortToTry, getStreamConnector, initializePortNumbers, sendHolePunchPacket, setNextMediaPortToTry, setTrafficClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RawUdpTransportManager(CallPeerJabberImpl callPeer)
callPeer - the CallPeer whose traffic we will be taking
care of.| Method Detail |
|---|
protected void closeStreamConnector(MediaType mediaType,
StreamConnector streamConnector)
closeStreamConnector in class TransportManager<CallPeerJabberImpl>mediaType - the MediaType associated with the specified
streamConnectorstreamConnector - the StreamConnector to be closedTransportManager.closeStreamConnector(MediaType)
protected StreamConnector createStreamConnector(MediaType mediaType)
throws OperationFailedException
createStreamConnector in class TransportManager<CallPeerJabberImpl>mediaType - the MediaType of the stream for which a
StreamConnector is to be created
OperationFailedException - if the binding of the sockets failspublic MediaStreamTarget getStreamTarget(MediaType mediaType)
TransportManagerJabberImpl.getStreamTarget(MediaType).
Gets the MediaStreamTarget to be used as the target of
the MediaStream with a specific MediaType.
getStreamTarget in class TransportManagerJabberImplmediaType - the MediaType of the MediaStream which
is to have its target set to the returned
MediaStreamTarget
TransportManagerJabberImpl.getStreamTarget(MediaType)public String getXmlNamespace()
TransportManagerJabberImpl.getXmlNamespace(). Gets the
XML namespace of the Jingle transport implemented by this
TransportManagerJabberImpl.
getXmlNamespace in class TransportManagerJabberImplTransportManagerJabberImpl.getXmlNamespace()public void removeContent(String name)
removeContent in class TransportManagerJabberImplname - the name of the content to be removed from the
transport-related part of the session represented by this
TransportManagerJabberImplTransportManagerJabberImpl.removeContent(String)
public void startCandidateHarvest(List<ContentPacketExtension> ourOffer,
TransportInfoSender transportInfoSender)
throws OperationFailedException
wrapupCandidateHarvest() method which would be called once we
absolutely need the candidates.
startCandidateHarvest in class TransportManagerJabberImplourOffer - the content list that should tell us how many stream
connectors we actually need.transportInfoSender - the TransportInfoSender to be used by
this TransportManagerJabberImpl to send transport-info
JingleIQs from the local peer to the remote peer if this
TransportManagerJabberImpl wishes to utilize
transport-info. Local candidate addresses sent by this
TransportManagerJabberImpl in transport-info are
expected to not be included in the result of
wrapupCandidateHarvest().
OperationFailedException - in case we fail allocating ports
public void startCandidateHarvest(List<ContentPacketExtension> theirOffer,
List<ContentPacketExtension> ourAnswer,
TransportInfoSender transportInfoSender)
throws OperationFailedException
wrapupCandidateHarvest() method which would be called once we
absolutely need the candidates.
startCandidateHarvest in class TransportManagerJabberImpltheirOffer - a media description offer that we've received from the
remote party and that we should use in case we need to know what
transports our peer is using.ourAnswer - the content descriptions that we should be adding our
transport lists to (although not necessarily in this very instance).transportInfoSender - the TransportInfoSender to be used by
this TransportManagerJabberImpl to send transport-info
JingleIQs from the local peer to the remote peer if this
TransportManagerJabberImpl wishes to utilize
transport-info. Local candidate addresses sent by this
TransportManagerJabberImpl in transport-info are
expected to not be included in the result of
wrapupCandidateHarvest().
OperationFailedException - if we fail to allocate a port number.TransportManagerJabberImpl.startCandidateHarvest(List, List,
TransportInfoSender)public boolean startConnectivityEstablishment(Iterable<ContentPacketExtension> remote)
getStreamTarget(MediaType).
startConnectivityEstablishment in class TransportManagerJabberImplremote - the collection of ContentPacketExtensions which
represents the remote counterpart of the negotiation between the local
and the remote peer
TransportManagerJabberImpl.startConnectivityEstablishment(Iterable)public List<ContentPacketExtension> wrapupCandidateHarvest()
wrapupCandidateHarvest in class TransportManagerJabberImplTransportManagerJabberImpl.wrapupCandidateHarvest()public String getICECandidateExtendedType()
getICECandidateExtendedType in class TransportManager<CallPeerJabberImpl>public String getICEState()
getICEState in class TransportManager<CallPeerJabberImpl>
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||