1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

s/XMPPConnection/TCPConnection

This commit is contained in:
Florian Schmaus 2014-03-02 15:23:54 +01:00
parent 07649cc758
commit 84a3fd7bd9
25 changed files with 114 additions and 114 deletions

View file

@ -17,7 +17,7 @@
package org.jivesoftware.smackx.jingle.mediaimpl.demo;
import org.jivesoftware.smack.Connection;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.TCPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smackx.jingle.JingleManager;
import org.jivesoftware.smackx.jingle.JingleSession;
@ -66,7 +66,7 @@ public class Demo extends JFrame {
jid = new JTextField("jeffw" + "@" + server + "/Smack");
}
xmppConnection = new XMPPConnection(server);
xmppConnection = new TCPConnection(server);
try {
xmppConnection.connect();
xmppConnection.login(user, pass);

View file

@ -16,7 +16,7 @@
package org.jivesoftware.smackx.jingle;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.TCPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.filter.PacketFilter;
import org.jivesoftware.smack.packet.IQ;
@ -682,10 +682,10 @@ public class JingleManagerTest extends SmackTestCase {
resetCounter();
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
XMPPConnection.DEBUG_ENABLED = true;
TCPConnection.DEBUG_ENABLED = true;
FixedResolver tr0 = new FixedResolver("127.0.0.1", 20080);
FixedTransportManager ftm0 = new FixedTransportManager(tr0);
@ -797,8 +797,8 @@ public class JingleManagerTest extends SmackTestCase {
resetCounter();
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
FixedResolver tr0 = new FixedResolver("127.0.0.1", 20004);
FixedTransportManager ftm0 = new FixedTransportManager(tr0);

View file

@ -17,7 +17,7 @@ package org.jivesoftware.smackx.jingle;
* limitations under the License.
*/
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.TCPConnection;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.test.SmackTestCase;
import org.jivesoftware.smackx.jingle.listeners.JingleSessionRequestListener;
@ -52,8 +52,8 @@ public class JingleMediaTest extends SmackTestCase {
public void testCompleteJmf() {
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
for (int i = 0; i < 1; i++)
try {
@ -131,8 +131,8 @@ public class JingleMediaTest extends SmackTestCase {
try {
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
ICETransportManager icetm0 = new ICETransportManager(x0, "jivesoftware.com", 3478);
ICETransportManager icetm1 = new ICETransportManager(x1, "jivesoftware.com", 3478);
@ -212,10 +212,10 @@ public class JingleMediaTest extends SmackTestCase {
try {
//XMPPConnection.DEBUG_ENABLED = true;
//TCPConnection.DEBUG_ENABLED = true;
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
JingleMediaManager jingleMediaManager0 = new SpeexMediaManager(new STUNTransportManager());
JingleMediaManager jingleMediaManager1 = new SpeexMediaManager(new STUNTransportManager());
@ -266,8 +266,8 @@ public class JingleMediaTest extends SmackTestCase {
try {
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
ICETransportManager icetm0 = new ICETransportManager(x0, "stun.xten.net", 3478);
ICETransportManager icetm1 = new ICETransportManager(x1, "stun.xten.net", 3478);
@ -325,8 +325,8 @@ public class JingleMediaTest extends SmackTestCase {
public void run() {
try {
XMPPConnection x0 = getConnection(n);
XMPPConnection x1 = getConnection(n + 1);
TCPConnection x0 = getConnection(n);
TCPConnection x1 = getConnection(n + 1);
BridgedTransportManager btm0 = new BridgedTransportManager(x0);
BridgedTransportManager btm1 = new BridgedTransportManager(x1);
@ -399,10 +399,10 @@ public class JingleMediaTest extends SmackTestCase {
public void testCompleteWithBridgeB() {
try {
//XMPPConnection.DEBUG_ENABLED = true;
//TCPConnection.DEBUG_ENABLED = true;
XMPPConnection x0 = getConnection(0);
XMPPConnection x1 = getConnection(1);
TCPConnection x0 = getConnection(0);
TCPConnection x1 = getConnection(1);
BridgedTransportManager btm0 = new BridgedTransportManager(x0);
BridgedTransportManager btm1 = new BridgedTransportManager(x1);

View file

@ -96,7 +96,7 @@ import org.jivesoftware.smackx.provider.JingleProvider;
* try {
* <p/>
* // Connect to a XMPP Server
* Connection x1 = new XMPPConnection("xmpp.com");
* Connection x1 = new TCPConnection("xmpp.com");
* x1.connect();
* x1.login("juliet", "juliet");
* <p/>
@ -139,7 +139,7 @@ import org.jivesoftware.smackx.provider.JingleProvider;
* try {
* <p/>
* // Connect to a XMPP Server
* Connection x0 = new XMPPConnection("xmpp.com");
* Connection x0 = new TCPConnection("xmpp.com");
* x0.connect();
* x0.login("romeo", "romeo");
* <p/>