smack
sanan
小明小明小明小明
展开
-
Smack: Getting Started
This document will introduce you to the Smack API and provide an overview of important classes and concepts. JAR Files and Requirements Smack is meant to be easily embedded into any existing JDK 1原创 2009-09-24 16:35:00 · 732 阅读 · 0 评论 -
Smack: Connection Management
Creating a Connection The org.jivesoftware.smack.XMPPConnection class manages your connection to an XMPP server. Two constructors are available. The first, XMPPConnection(String) takes the server na原创 2009-09-24 16:40:00 · 934 阅读 · 0 评论 -
Messaging using Chats
Sending messages back and forth is at the core of instant messaging. Although individual messages can be sent and received as packets, its generally easier to treat the string of messages as a chat u原创 2009-09-24 16:41:00 · 386 阅读 · 0 评论 -
Roster and Presence
The roster lets you keep track of the availability ("presence") of other users. A roster also allows you to organize users into groups such as "Friends" and "Co-workers". Other IM systems refer to the原创 2009-09-24 16:46:00 · 734 阅读 · 0 评论 -
Debugging with Smack
Smack includes two built-in debugging consoles that will let you track all XML traffic between the client and server. A lite debugger which is part of the smack.jar and an enhanced debugger contained原创 2009-09-24 17:02:00 · 582 阅读 · 0 评论 -
Processing Incoming Packets
Smack provides a flexible framework for processing incoming packets using two constructs: org.jivesoftware.smack.PacketCollector -- a class that lets you synchronously wait for new packets. org.原创 2009-09-24 16:56:00 · 660 阅读 · 0 评论