Dollars instant chat client application source code, dollars instant chat

Source: Internet
Author: User

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

  • DRRRManager: a single instance, obtained through [DRRRManager sharedManager], used to manage links to the Jaber server and send xml data. DRRRManager is used by other functional modules.

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.