Dollars instant chat client application source code, dollars instant chat
This source code project is a Dollars instant chat client application source code, the source code is also relatively simple, hope this case can help you learn and use.
Source code download: http://code.662p.com/view/6725.html
An Instant Message Client by XMPP on iPhone
Use the chat tool on the iPhone implemented by XMPP.
Only a small part of functions are completed.
Login and registration;
Obtains the contact list;
Add friends;
Accept friends;
Chat with friends;
Obtains the list of multi-user chat rooms;
Join the room;
Multi-person chat in the room;
Modify the personal status; directory structure
/Drrr: encapsulates the XMPP Framework to implement specific functions;
/Dollarss: implements the iPhone client interface;
/XMPPFramework
Project dependency
XMPPFramework: only Core functions are used, and extensions only uses Reconnect;
The project itself does not use CoreData;
Arc is not supported;
Drrr includes several main parts
Link
Message:
DRRRMessageContent: a Message entry, corresponding to XMPPMessage
DRRRMessage: the entire message list, including the conversation list with each contact (chat room). DRRRMessage is a single instance, which is obtained through [DRRRMessage sharedMessage]. It contains a messageBundle NSDictionary, the jid of the chatbot is the key, and value is the list of conversation content. The list contains each message, that is, DRRRMessageContent. The received friend invitation and room invitation are also a message content; use DRRRMessage to send messages.
Contact
DRRRRoster: The entire contact list, which is a single instance and obtained through [DRRRRoster sharedRoster. You can use DRRRRoster to obtain contact information, modify the current logon user status, and subscribe to and accept contact invitations;
DRRRRosterMember: A contact entry;
Chat Room
DRRRChatRoomManager: A Single Instance obtained through [DRRRChatRoomManager sharedChatRoomManager]. It is responsible for managing the specific operations of the chat room functions;
DRRRChatRoom: The room corresponding to a chat room, including a member list memberList and room information chatRoomInfo;
DRRRChatRoomInfo: information about a chat room, including NSArray features and NSDictionary fields;
DRRRChatRoomInfoField: each value in fields in drrrchatchatminfo is a DRRRChatRoomInfoField. The result is only for the data format returned by XMPP;
DRRRChatRoomMember: a chat room member, including roles and statuses;
Http://ios.662p.com/thread-1628-1-1.html