mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Add first dirty send test
This commit is contained in:
parent
2cbbfd1048
commit
0b28e8b467
8 changed files with 142 additions and 20 deletions
|
@ -36,7 +36,7 @@ public enum JingleAction {
|
|||
session_accept,
|
||||
session_info,
|
||||
session_initiate,
|
||||
sessio_terminate,
|
||||
session_terminate,
|
||||
transport_accept,
|
||||
transport_info,
|
||||
transport_reject,
|
||||
|
|
|
@ -18,10 +18,10 @@ package org.jivesoftware.smackx.jingle_ibb;
|
|||
|
||||
import org.jivesoftware.smack.Manager;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
import org.jivesoftware.smack.util.StringUtils;
|
||||
import org.jivesoftware.smackx.jingle.provider.JingleContentProviderManager;
|
||||
import org.jivesoftware.smackx.jingle_ibb.provider.JingleInBandByteStreamTransportProvider;
|
||||
|
||||
import java.util.Random;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/**
|
||||
|
@ -52,6 +52,6 @@ public final class JingleInBandByteStreamManager extends Manager {
|
|||
* @return
|
||||
*/
|
||||
public static String generateSessionId() {
|
||||
return Integer.toString(64,new Random().nextInt());
|
||||
return StringUtils.randomString(24);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue