org.littleshoot.commom.xmpp
Interface XmppP2PClient<T>
- All Superinterfaces:
- org.lastbamboo.common.offer.answer.Offerer, org.lastbamboo.common.p2p.P2PClient<T>, org.lastbamboo.common.p2p.SocketFactory<T>
- All Known Implementing Classes:
- ControlEndpointXmppP2PClient, ControlXmppP2PClient
public interface XmppP2PClient<T>
- extends org.lastbamboo.common.p2p.P2PClient<T>
P2P client interface for XMPP clients.
|
Method Summary |
void |
addMessageListener(org.jivesoftware.smack.MessageListener ml)
|
org.jivesoftware.smack.XMPPConnection |
getXmppConnection()
|
void |
handleClose()
|
boolean |
isLoggedOut()
|
String |
login(String user,
String pass,
String serverHost,
int serverPort,
String serviceName)
|
String |
login(String user,
String pass,
String serverHost,
int serverPort,
String serviceName,
String id)
|
String |
login(XmppCredentials credentials)
|
String |
login(XmppCredentials credentials,
String serverHost,
int serverPort,
String serviceName)
|
void |
stop()
|
| Methods inherited from interface org.lastbamboo.common.p2p.P2PClient |
addConnectionListener, login, login, logout |
| Methods inherited from interface org.lastbamboo.common.p2p.SocketFactory |
newRawSocket, newRawUnreliableSocket, newSocket, newUnreliableSocket |
| Methods inherited from interface org.lastbamboo.common.offer.answer.Offerer |
offer |
getXmppConnection
org.jivesoftware.smack.XMPPConnection getXmppConnection()
addMessageListener
void addMessageListener(org.jivesoftware.smack.MessageListener ml)
isLoggedOut
boolean isLoggedOut()
handleClose
void handleClose()
stop
void stop()
login
String login(String user,
String pass,
String serverHost,
int serverPort,
String serviceName)
throws IOException,
CredentialException
- Throws:
IOException
CredentialException
login
String login(String user,
String pass,
String serverHost,
int serverPort,
String serviceName,
String id)
throws IOException,
CredentialException
- Throws:
IOException
CredentialException
login
String login(XmppCredentials credentials)
throws IOException,
CredentialException
- Throws:
IOException
CredentialException
login
String login(XmppCredentials credentials,
String serverHost,
int serverPort,
String serviceName)
throws IOException,
CredentialException
- Throws:
IOException
CredentialException
Copyright © 2014 LittleShoot. All Rights Reserved.