From 3d926a034ca114462bf429467cbea2ea27dc6042 Mon Sep 17 00:00:00 2001
From: Florian Schmaus
The org.jivesoftware.smack.XMPPConnection class manages your connection to an XMPP
- server. The default implementation is the org.jivesoftware.smack.XMPPConnection
- class. Two constructors are mainly used. The first, XMPPConnection(String) takes
+ server. The default implementation is the org.jivesoftware.smack.XMPPTCPConnection
+ class. Two constructors are mainly used. The first, XMPPTCPConnection(String) takes
the server name you'd like to connect to as an argument. All default connection settings will
be used:
@@ -33,7 +33,7 @@
- Alternatively, you can use the XMPPServer(ConnectionConfiguration) constructor to
+ Alternatively, you can use the XMPPTCPConnection(ConnectionConfiguration) constructor to
specify advanced connection settings. Some of these settings include:
@@ -63,7 +63,7 @@ ConnectionConfiguration config = new ConnectionConfiguration(// Connect to the server
connection.connect();
// Log into the server
diff --git a/documentation/gettingstarted.html b/documentation/gettingstarted.html
index 74b19f177..1e52551ee 100644
--- a/documentation/gettingstarted.html
+++ b/documentation/gettingstarted.html
@@ -76,18 +76,18 @@ list of initializers.
Establishing a Connection
// Create a connection to the jabber.org server. -Connection conn1 = new XMPPConnection("jabber.org"); +XMPPConnection conn1 = new XMPPTCPConnection("jabber.org"); conn1.connect(); // Create a connection to the jabber.org server on a specific port. ConnectionConfiguration config = new ConnectionConfiguration("jabber.org", 5222); -Connection conn2 = new XMPPConnection(config); +XMPPConnection conn2 = new XMPPTCPConnection(config); conn2.connect();
-Connection connection = new XMPPConnection("jabber.org"); +XMPPConnection connection = new XMPPTCPConnection("jabber.org"); connection.connect(); connection.login("mtucker", "password"); Chat chat = connection.getChatManager().createChat("jsmith@jivesoftware.com", new MessageListener() {