|
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.IceUdpTransportManager
net.java.sip.communicator.impl.protocol.jabber.P2PTransportManager
public class P2PTransportManager
Google P2P TransportManager.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager |
|---|
cpeList, DEFAULT_STUN_SERVER_ADDRESS, DEFAULT_STUN_SERVER_PORT, iceAgent |
| Constructor Summary | |
|---|---|
P2PTransportManager(CallPeerJabberImpl callPeer)
Creates a new instance of this transport manager, binding it to the specified peer. |
|
| Method Summary | |
|---|---|
protected org.ice4j.ice.Agent |
createIceAgent()
Creates the ICE agent that we would be using in this transport manager for all negotiation. |
org.jivesoftware.smack.packet.PacketExtension |
createTransport(org.ice4j.ice.IceMediaStream stream)
Converts the ICE media stream and its local candidates into a GTalkTransportPacketExtension. |
protected org.jivesoftware.smack.packet.PacketExtension |
getTransportPacketExtension()
Get the transport PacketExtension to add. |
String |
getXmlNamespace()
Implements TransportManagerJabberImpl.getXmlNamespace(). |
void |
startCandidateHarvest(List<ContentPacketExtension> ourOffer,
TransportInfoSender transportInfoSender)
Starts transport candidate harvest. |
boolean |
startConnectivityEstablishment(Iterable<ContentPacketExtension> remote)
Starts the connectivity establishment of the associated ICE Agent. |
void |
wrapupConnectivityEstablishment()
Waits for the associated ICE Agent to finish any started connectivity checks. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager |
|---|
close, createIceStream, createStreamConnector, getICECandidateExtendedType, getICEState, getStreamConnector, getStreamTarget, propertyChange, removeContent, startCandidateHarvest, wrapupCandidateHarvest |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.TransportManagerJabberImpl |
|---|
findContentByName, getCurrentGeneration, getIntendedDestination, getNextID, incrementGeneration, removeContent |
| Methods inherited from class net.java.sip.communicator.service.protocol.media.TransportManager |
|---|
closeStreamConnector, closeStreamConnector, getCallPeer, getICECandidateExtendedType, getLastUsedLocalHost, getNextMediaPortToTry, 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 P2PTransportManager(CallPeerJabberImpl callPeer)
callPeer - the CallPeer whose traffic we will be taking
care of.| Method Detail |
|---|
protected org.ice4j.ice.Agent createIceAgent()
createIceAgent in class IceUdpTransportManagerpublic String getXmlNamespace()
TransportManagerJabberImpl.getXmlNamespace(). Gets the
XML namespace of the Jingle transport implemented by this
TransportManagerJabberImpl.
getXmlNamespace in class IceUdpTransportManagerTransportManagerJabberImpl.getXmlNamespace()protected org.jivesoftware.smack.packet.PacketExtension getTransportPacketExtension()
getTransportPacketExtension in class IceUdpTransportManagerpublic org.jivesoftware.smack.packet.PacketExtension createTransport(org.ice4j.ice.IceMediaStream stream)
GTalkTransportPacketExtension.
createTransport in class IceUdpTransportManagerstream - the IceMediaStream that we'd like to describe in
XML.
GTalkTransportPacketExtension
public void startCandidateHarvest(List<ContentPacketExtension> ourOffer,
TransportInfoSender transportInfoSender)
throws OperationFailedException
IceUdpTransportManager.wrapupCandidateHarvest() method which would be called once we
absolutely need the candidates.
startCandidateHarvest in class IceUdpTransportManagerourOffer - 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
IceUdpTransportManager.wrapupCandidateHarvest().
OperationFailedException - in case we fail allocating portspublic boolean startConnectivityEstablishment(Iterable<ContentPacketExtension> remote)
startConnectivityEstablishment in class IceUdpTransportManagerremote - the collection of ContentPacketExtensions which
represents the remote counterpart of the negotiation between the local
and the remote peers
TransportManagerJabberImpl.startConnectivityEstablishment(Iterable)
public void wrapupConnectivityEstablishment()
throws OperationFailedException
wrapupConnectivityEstablishment in class IceUdpTransportManagerOperationFailedException - if ICE processing has failedTransportManagerJabberImpl.wrapupConnectivityEstablishment()
|
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 | |||||||||