Interface JingleTransportListener
- All Superinterfaces:
JingleListener
Interface for listening to transport events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that a transport must be cancelled.voidtransportClosedOnError(org.jivesoftware.smack.XMPPException e) Notification that the transport was closed due to an exception.voidtransportEstablished(TransportCandidate local, TransportCandidate remote) Notification that the transport has been established.
-
Method Details
-
transportEstablished
void transportEstablished(TransportCandidate local, TransportCandidate remote) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException Notification that the transport has been established.- Parameters:
local- The transport candidate that has been used for listening in the local machineremote- The transport candidate that has been used for transmitting to the remote machine- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.InterruptedException- if the calling thread was interrupted.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.
-
transportClosed
Notification that a transport must be cancelled.- Parameters:
cand- The transport candidate that must be cancelled. A value of "null" means all the transports for this session.
-
transportClosedOnError
void transportClosedOnError(org.jivesoftware.smack.XMPPException e) Notification that the transport was closed due to an exception.- Parameters:
e- the exception.
-