Xmpp connection using asmack and bonjour on android -


i'm trying server-less app im. use apple bonjour protocol discover xmpp services. once can't connect host (linux computer using pidgin + bonjour).

here code (taken here) :

public class xmpp extends asynctask<void, void, void> {     @override     protected void doinbackground(void... arg0)     {         connectionconfiguration connconfig =                 new connectionconfiguration("192.168.0.11", 5298, "bonjour");         xmppconnection connection = new xmppconnection(connconfig);          try         {             // connect server             connection.connect();              // servers require login before performing other tasks.             connection.login("grea08", "mypass");             // start new conversation john doe , send him message.             chat chat = connection.getchatmanager().createchat("grea09@192.168.0.11", new messagelistener() {                    public void processmessage(chat chat, message message) {                      // print out messages standard out.                      log.v(getclass().getname(), "received message: " + message);                  }              });              chat.sendmessage("howdy!");         } catch (xmppexception e)         {             // todo auto-generated catch block             log.e(getclass().getname(), "xmpp error !", e);         }          // disconnect server          connection.disconnect();         return null;     }  } 

i've got xmppexception "no response server". think host not xmpp server , must use protocol this way.

smack , asmack has no support xep-0174 (aka. link-local or serverless messaging). jonas patches never made trunk. corresponding issue track smack-262.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -