xmpp

Getting answer from Jabber Server

 ̄綄美尐妖づ 提交于 2019-12-25 05:03:35
问题 I want connect with my jabber server and read server answer: DnsEndPoint host = new DnsEndPoint("talk.google.com", 5222); Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); SocketAsyncEventArgs args = new SocketAsyncEventArgs(); public void start() { string message = "<?xml version=1.0?><stream:streamto='gmail.com'xmlns='jabber:client'xmlns:stream='http://etherx.jabber.org/streams'version='1.0'>"; var buffer = Encoding.UTF8.GetBytes(message); args

How does user1 (admin) submit presence subscription request from user2 to user 3 [closed]

让人想犯罪 __ 提交于 2019-12-25 04:58:16
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I hope it is possible because I couldn't find it anywhere on the web or in the XMPP/ejabberd docs: I run ejabberd and would like the ability for user1 (an administrator account) to be able to push a presence subscription request to user3 that appears to have come from user2. For security reasons I

Android Smack MessageEventManager not compiling

拜拜、爱过 提交于 2019-12-25 04:39:37
问题 I am using smack API with openfire server to make an android app. I am trying to implement a MessageEventManager and MessageEventProvider to my app so it will tell me if the message was delivered or not though when i try to declare it a MessageEventManager, it is not compiling and tells me to create that class, What can i do? i have the following dependencies in my gradle: dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:22.1.1'

XMPP: count of unread messages

二次信任 提交于 2019-12-25 04:16:03
问题 I'm trying to implement chat for my webapp with following features: When user logs in he should see a number of unread messages (which is both offline messages and "unseen", I will explain "unseen" in next step). When user is anywhere in the app but on chat window he should be notified that he has a new message. Message should be marked "unseen" and must be added to the count of unread messages. The first point is quite easily achieved using XEP-0013: Flexible Offline Message Retrieval. So I

Register a new user in ejabberd using Erlang

岁酱吖の 提交于 2019-12-25 03:45:19
问题 I am using erlang 17, ejabberd 14.07. I am trying to create chat application, For that I have to create user for ejabberd using Erlang. I have search but nothing found useful. There are three ways to do registration as far I have explored. Using command line From localhost Using other api Is there any method in ejabberd which help me to register new user? I am new in Erlang and ejabberd so it becomes useful to me if you describe step if any configuration required. 回答1: Do you mean that you

XMMP Server Setup [closed]

我的梦境 提交于 2019-12-25 03:31:19
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I have to utilize live chat capabilities using XMPP with existing users and their messages (SQL Tables) What is the best way port all users and their message onto XMPP server ? Can I connect my existing users and messages to XMPP server ? What are alternatives for implementing

XMPPFramework - How can I get a list of online and offline friends?

我的未来我决定 提交于 2019-12-25 03:24:19
问题 How can I get a list of online and offline friends using XMPPFramework in iOS? I want to send buddy request to user. So how can I achieve this? Can somebody share some sample codes for me? Thank you. 回答1: By using these methods you will get notified whole a user going to online/ offline, added, removed , updated etc.by using these methods you can update your contact list - (void)xmppRoster:(XMPPRosterMemoryStorage *)sender didAddUser:(XMPPUserMemoryStorageObject *)user - (void)xmppRoster:

iOS - XMPPFramework - creating a group chatroom - Issue

☆樱花仙子☆ 提交于 2019-12-25 02:52:10
问题 I am developing a chat app in iOS. In XMPP server (Ejabberd in this case,I have enabled MUC ). I have registered a user and now trying to create a chatroom using an registered user. Also in MUC, the Host setting is defined properly {host, "conference.@HOST@"} But I am not able to create a chatroom The code I am using is below XMPPRoomCoreDataStorage *rosterstorage = [[XMPPRoomCoreDataStorage alloc] init]; NSString *jid =[[NSUserDefaults standardUserDefaults] valueForKey:@"UserName"]; jid=[jid

File transfer in group chat with XMPP

霸气de小男生 提交于 2019-12-25 02:38:17
问题 I am using group chat with open fire. i can able to send messages but how to send file to group with Smack library. i can able to send file to single user with below but i don't know how to send to group chat (MUC) so all users in room will receive that file OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer("usre2@myHost/Smack"); 回答1: Use XEP-0066: Out of Band Data - this is small extension to standard groupchat message with url and description. Other users will receive link

what does feature not implemented response mean

时间秒杀一切 提交于 2019-12-25 01:45:52
问题 I am trying to send a custom IQ to ejabberd server from android app and I have this following class public class IQCustom extends IQ { public final static String childElementName = "query"; public final static String childElementNamespace = "jabber:iq:conversations"; public IQCustom(String userFrom, String server) { super( childElementName, childElementNamespace ); this.setType(Type.get); setTo( server ); setFrom( userFrom ); } @Override protected IQChildElementXmlStringBuilder