xmpp

parsing xml content on windows phone 7 using tcp sockets

删除回忆录丶 提交于 2020-01-01 19:56:08
问题 I am working on an application for windows phone 7. I have a to parse xml stream using tcp sockets in c# silverlight. I am trying it using xmlreader and memory stream but it is of no help. When memory stream is updated by a receive async call, xmlreader has no impact of that reader. Please help me on how to parse streaming xml from sockets. I have a xmlReader such that: memoryStream= new MemoryStream(); _xmlreader = XmlReader.Create(memoryStream, xmlReaderSettings, context); now memoryStream

Typing Status Smack 4.1

血红的双手。 提交于 2020-01-01 19:17:31
问题 Hey I am trying to get typing status when the other person starts writing even though it is returning an empty message with the state as a message but it is coming from proccessMessage method. Shouldn't it be returned in the stateChanged? I haven't enabled any PacketProvider though, Do i have to do it so this would be returned in the stateChanged method? I would appreciate any help. newChat = chatmanager.createChat(contactUsername + sc.DOMAIN, new ChatStateListener() { @Override public void

Typing Status Smack 4.1

限于喜欢 提交于 2020-01-01 19:17:25
问题 Hey I am trying to get typing status when the other person starts writing even though it is returning an empty message with the state as a message but it is coming from proccessMessage method. Shouldn't it be returned in the stateChanged? I haven't enabled any PacketProvider though, Do i have to do it so this would be returned in the stateChanged method? I would appreciate any help. newChat = chatmanager.createChat(contactUsername + sc.DOMAIN, new ChatStateListener() { @Override public void

How to add more attributes to Openfire MySQL database?

走远了吗. 提交于 2020-01-01 15:03:27
问题 I setup a Openfire server with external MySQL database using the openfire_mysql.sql file from the openfire installation directory to populate the database, the connection and everything basic seems to be ok. However I need to add another attribute of a User instead of just "name", "email", I need to add "phone" and a long text field for users to save some notes. Actually using the Smack API there are already enough attributes that can be stored in a User's data based on the API doc: http:/

best java jabber client library [closed]

本秂侑毒 提交于 2020-01-01 08:53:12
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What good/bad experiences do you have with java jabber libraries? 回答1: I've had really good experience with the Smack library. I found it straightforward to use, and pretty easy to get a basic client up and running. The documentation was pretty good as well. 来源: https:/

best java jabber client library [closed]

风流意气都作罢 提交于 2020-01-01 08:53:05
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What good/bad experiences do you have with java jabber libraries? 回答1: I've had really good experience with the Smack library. I found it straightforward to use, and pretty easy to get a basic client up and running. The documentation was pretty good as well. 来源: https:/

Google chat server archive (XEP-0136)

独自空忆成欢 提交于 2020-01-01 07:32:27
问题 I am looking for a way how to retrieve archive of chat messages from google server via using XEP-0136 standard, but I got these results just trying to ask for the feature. Request: <iq type="get"><pref xmlns="urn:xmpp:archive"/></iq> Response: <iq xmlns="jabber:client" type="error" to="myEmail@gmail.com/9FF72CA7"> <pref xmlns="urn:xmpp:archive"/> <error code="501" type="cancel"> <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> </error> </iq> So it looks like google does

Facebook asmack xmpp client returns random numbers for roster

元气小坏坏 提交于 2020-01-01 07:06:06
问题 I followed the guidlines given in the following SO question to connect to facebook chat using xmpp and I am able to connect to facebook and pull the correct number of contacts but when it prints the contacts they are all random numbers @chat.facebook.com and all return offline. Android Facebook chat example project public void connectToFb() throws XMPPException { ConnectionConfiguration config = new ConnectionConfiguration("chat.facebook.com", 5222); config.setSASLAuthenticationEnabled(true);

How to use XMPP over BOSH

房东的猫 提交于 2020-01-01 04:17:07
问题 So im a little confused about what excatly BOSH is. Is it a way to interact with the XMPP server using http? For example openfire uses BOSH at http://domain.com:7070/http-bind/ How do i use this URL ? What needs to be done? 回答1: In simple terms, BOSH is simulating a persistent connection between client and XMPP server using HTTP calls. The client makes an HTTP(s) request to the server, if the server does not have anything to send to the client, the server holds on to the connection for a

How to send composing / is typing (Chat states) event in Multiuser chat / Group chat & One to One chat in xmpp android?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 03:47:05
问题 I want send composing event in Group (Multiuser) chat in xmpp, I am using asmack library, I have done same functionality with One to One chat. I am using below code: mMessageEventManager = new MessageEventManager(XMPPConnectApplication.getInstance().getXmppConnection()); mMessageEventManager.addMessageEventNotificationListener(new MessageEventNotificationListener() { @Override public void offlineNotification(String arg0, String arg1) { } @Override public void displayedNotification(String arg0