|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface P2PClient<T>
General interface for P2P clients.
| Method Summary | |
|---|---|
void |
addConnectionListener(P2PConnectionListener listener)
Adds a listener for changes to the state of p2p connections. |
String |
login(String user,
String password)
Logs in to the server. |
String |
login(String user,
String password,
String id)
Logs in to the server. |
void |
logout()
Logs out the currently logged in user. |
| Methods inherited from interface org.lastbamboo.common.p2p.SocketFactory |
|---|
newRawSocket, newRawUnreliableSocket, newSocket, newUnreliableSocket |
| Methods inherited from interface org.lastbamboo.common.offer.answer.Offerer |
|---|
offer |
| Method Detail |
|---|
String login(String user,
String password)
throws IOException,
CredentialException
user - The user name.password - The password.
IOException - If we could not log in.
CredentialException - If the credentials are wrong.
String login(String user,
String password,
String id)
throws IOException,
CredentialException
user - The user name.password - The password.id - An ID to use to identify this logged-in instance.
IOException - If we could not log in.
CredentialException - If the credentials are wrong.void logout()
void addConnectionListener(P2PConnectionListener listener)
listener - The listener to add.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||