Recently, the company needs to study the Jwchat+openfire Instant messaging system, then wandering in the Internet, according to its description Leng did not succeed, but eventually succeeded, now on the configuration process to explain, hope to have the same needs of netizens less take detours:First, version informationjdk6.0apache2.2openfire3.7jwchat1.0Second, the Apache server configuration.We download th
0, about the registered account is needless to say.
1, the creation of applications, access to Appkey
0. Create Application
1, fill in the information
2. Get Appkey
2, integration
0. Create a new project first
1, here mainly introduces the use of Easeui to integrate the ring letter Instant Messaging function, need to download the SDK
2, the Easeui as a dependency to import into the project,
Overview
WCF land continued to be used many times, but every time is a little, to be enough to solve the problem for the king, these days a bit idle, special search for some information to see, last night, tried to use WCF Duplex mode to implement a simple instant messaging program, through the service-side forwarding to achieve communication between the client. This is just a demo, without considering exc
There was a saying that the more high-end instant messaging software , the more value-preserving, but now, regardless of the high-end of the DSLR, do not maintain the value. For example, the D610 I bought this time last year was priced at $9999, now 7999 Yuan, just one year. And the friend bought last year 6 D, then spent 10500 yuan, now only 8399 Yuan, is also a year time. The same is true of those len
The use of OpenFire as a server, so no need to write a server, will save a lot of things, openfire after a simple configuration can realize a communication server basic functions,
OpenFire
With Java development, open source real-time collaboration (RTC) servers are based on the XMPP (Jabber) protocol.
Xmpp
An xml-based protocol that inherits the flexibility of development in an XML environment. Therefore, the application based on XMPP has super scalability. Extended XMPP can address the need
to carry on the brain to fill, but seemingly temporarily cannot use, let it default.Original link PortalHere is a core of xmppframework: Multi Delegate (author exclusive, Worship!) ~[Xmppstream adddelegate:self Delegatequeue:dispatch_get_main_queue ()]; [Xmpproster adddelegate:self Delegatequeue:dispatch_get_main_queue ()];Add a sub delegate callback to the XML stream, in the current class, in the Mainthread queue,A sub delegate callback is made to the roster, in the current class, the main thr
settings, support settings message notification reminders (sound vibration, etc.), support chat logs and message list empty;8, exit the popup when exiting the prompt box;There is a picture for proof:Here to explain, the personality signature is also the mood, after setting up, look at the next database, suspected and not saved to the database, so only you will be online to display the signature you have set, once the offline, your signature disappears. About the avatar display, XMPP is supporte
NetCore WebSocket instant messaging example: netcorewebsocket
1. Create a Netcore Web Project
2. Create a simple communication protocol
public class MsgTemplate { public string SenderID { get; set; } public string ReceiverID { get; set; } public string MessageType { get; set; } public string Content { get; set; } }
SenderID: the sender ID.
ReceiverID: re
(game1readygame2ready) { game2.sendtext (str); } Conn.sendtext (str) }) Conn.on ("Close", function (code, reason) { console.log ("Close Connection") }); Conn.on ("Error", function (code, reason) { console.log ("abnormal Close") }). Listen (8001) Console.log ("WebSocket established")"Game1 Code": Click to get three boxes of content, upload to the server Game2 code: Gets the message that is pushed by the service and displays the The code is v
First, installationDownload MySQL installable DMG version to MySQL official online http://dev.mysql.com/downloads/mysql/For example:Mac OS X ver. 10.9 (x86, 64-bit), DMG ArchiveThe downloaded files are: mysql-5.6.26-osx10.9-x86_64.dmg1. Click, install in the package2. After installation, the other system preferences will appear as follows:3. Click this icon to jump out of the dialog boxClick the start MySQL server button to start MySQLSecond, open the terminal, define the MySQL alias1. Edit the.
Due to the emergence of. net, a lot of development work has indeed become more advanced languages like English. Due to the object-oriented development and design, a lot of originally complicated operations are only involved in component development. For the front-end application layer, you only need to call attributes and Methods one by one. For example, to add a Document, first declare a Document object named doc, and then assign a value to the Document attribute:
Doc. Name = "test ";
Doc. File
Uninstalling Openfire and uiopenfire in UI advanced instant messaging
First, make sure that you have disabled openfire.Open the terminal (in the application --> utility -->)Enter the following commandSudo rm-rf/Library/PreferencePanes/Openfire. prefPaneSudo rm-rf/usr/local/openfireSudo rm-rf/Library/LaunchDaemons/org. jivesoftware. openfire. plist
The first one will allow you to enter the administrator pa
Instant Messaging UI-chat interface (UITableView displays the chat between the left and right), ui-uitableview
Directory
1. Create a UITableView object and set relevant properties
2. Create a cellModel
// Enumeration type typedef enum {ChatMessageFrom = 0, // the message from the peer ChatMessageTo // the message sent to the peer} ChatMesageType; # import
#import "ChatModel.h"@implementation ChatModel- (i
Recently, when I was writing an Instant Messaging Server, I encountered a dilemma about session design in communication protocols.
First, let's talk about some existing protocol designs:
1. MSN, sip, fetion (SIP)
In this Protocol, both parties need to establish a session. First, a session creation request is sent. The following uses a sip conversation as an example:
First, send an invite to th
First, make sure you've turned off the openfire.Open terminal (in application--utilities--)Enter the following commandsudo rm-rf/library/preferencepanes/openfire.prefpanesudo rm-rf/usr/local/openfiresudo rm-rf/library/launchdaemons/org.jivesoftware.openfire.plistThe first one will let you enter the administrator password, although you enter the time, the terminal will not display, do not worry, the correct input and press ENTER, it is executed.After three orders, OpenFire disappeared completely.
First, make sure you've turned off the openfire.Open terminal (in application--utilities--)Enter the following commandsudo rm-rf/library/preferencepanes/openfire.prefpanesudo rm-rf/usr/local/openfiresudo rm-rf/library/launchdaemons/org.jivesoftware.openfire.plistThe first one will let you enter the administrator password, although you enter the time, the terminal will not display, do not worry, the correct input and press ENTER, it is executed.After three orders, OpenFire disappeared completely.
---restore content starts---#import "ViewController.h" @interface Viewcontroller () PS: Note:1. If you need to connect to the server2. Input and output streams need to be added to the main run loop3. Input stream: Used to write data4. Output stream: Used to read dataSummary of steps:1. Establish the connection, set the IP and port number2. Through the establishment of the C language input and output stream, connect the server, and then convert the input and output of the C language into OC objec
default admin account and customize it, you need to do the following(1) in the terminal, login to the specific database (OpenFire)Mysql-u root-p OpenFireThen enter the root password of the database(2) Delete the admin account in the table "Ofuser"Delete from Ofuser where username= ' admin ';(3) Create a custom administrator (user name: Xiaodao, Password: 123)INSERT into Ofuser (username, Plainpassword, Encryptedpassword, name, email, creationdate, modificationdate) VALUES (' Xia Odao ', ' 123 '
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.