1
0
Fork 0
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:
vanitasvitae 2017-05-31 19:12:38 +02:00
parent 2cbbfd1048
commit 0b28e8b467
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
8 changed files with 142 additions and 20 deletions

View file

@ -36,7 +36,7 @@ public enum JingleAction {
session_accept,
session_info,
session_initiate,
sessio_terminate,
session_terminate,
transport_accept,
transport_info,
transport_reject,

View file

@ -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);
}
}