jdev - 2020-01-24


  1. Guus

    What clients support MAM in MUC, including features that lets you search through archives based on time, author, keywords?

  2. goffi

    Guus: SàT's CLI frontend (jp) allows you to search MAM based on time and authors, but not keywords (do we have a standardized field for that?)

  3. Ge0rG

    goffi: it has been just submitted to the XSF

  4. Ge0rG

    goffi: https://xmpp.org/extensions/inbox/fulltext.html

  5. goffi

    OK good news, I'll add it soon then.

  6. goffi

    Guus: you have documentation at https://salut-a-toi.org/__b/doc/sat/jp/message.html#mam

  7. Guus

    tx!

  8. pep.

    goffi, "Retrieve messages from last 5 hours on SàT official chat room:", the code below says "2h ago"

  9. goffi

    yes, I've just seen too, I've patched the doc, it will be fixed next time I update the website. Thanks for the notice.

  10. goffi

    pep.: ^

  11. pep.

    :)

  12. rajkumar

    how to communicate the XMPP client (using Smack Libraries) to localhost server

  13. rajkumar

    how to communicate the XMPP client (using Smack Libraries) to localhost server Please suggest me guys..

  14. Guus

    rajkumar If I recall correctly, you can specify the connect host when you set up the connection in Smack

  15. Guus

    final XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder() .setXmppDomain("example.org") .setHost("localhost") .performSaslAnonymousAuthentication() .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled); final XMPPTCPConnection connection = new XMPPTCPConnection(builder.build()); try { connection.connect(); connection.login(); } finally { connection.disconnect(); }

  16. Guus

    something like that?

  17. Guus

    this does an anonymous login, which must be enabled on the server.

  18. Guus

    also, it disables security, which obviously is not... secure.

  19. rajkumar

    Thanks for your response i setup the connection with local host IP address but connection is not happend my code is..

  20. rajkumar

    XMPPTCPConnectionConfiguration Config = XMPPTCPConnectionConfiguration.builder() .setUsernameAndPassword("rajk@localhost", "12345") .setHost("192.168.1.9") .setSecurityMode(ConnectionConfiguration.SecurityMode.disabled) //.setServiceName("localhost") // .setHost("localhost") .setPort(5280) .setDebuggerEnabled(true) // to view what's happening in detail .build(); //Set up the ui thread broadcast message receiver. //setupUiThreadBroadCastMessageReceiver(); //Set up the ui thread broadcast message receiver. setupUiThreadBroadCastMessageReceiver(); mConnection = new XMPPTCPConnection(Config); mConnection.addConnectionListener(this); try { Log.d(TAG, "Calling connect() "); mConnection.connect(); mConnection.login(mUsername,mPassword); Log.d(TAG, " login() Called "); } catch (InterruptedException e) { e.printStackTrace(); }

  21. Guus

    that suggests that your xmpp domain name is 'localhost'

  22. Guus

    which probably is not true.

  23. Guus

    also, you may need to set .setXmppDomain("example.org") explicitly

  24. Guus

    (use the domain name of your server, obviously)

  25. rajkumar

    my ejabbered local host name is admin@locahost

  26. rajkumar

    could u Please suggest some reference link for client and server communication

  27. Guus

    reconfigure your server to use anything but 'localhost' as the domain name.

  28. Guus

    Using 'localhost' is very confusing when networking is in play.

  29. Guus

    even simply using the hostname of your computer is an improvement, as at least that is resolvable.

  30. Guus

    also, you should be aware of the distinction between the concept of hostname and xmpp domain name.

  31. Guus

    they can have the same value, but that does not need to be the case.

  32. Guus

    the xmpp domain name is part of the JID (user identifier), while the hostname is used when creating a TCP connection to the server.

  33. rajkumar

    Tks..

  34. Guus

    np

  35. Sharuk

    hello i am also facing the same problem. Can you send me the full coding of Client server communication Sir

  36. Guus

    I just did.

  37. Guus

    https://logs.xmpp.org/jdev/2020-01-24#2020-01-24-5180d1123b5db103

  38. Sharuk

    i dono how to connect the client with server

  39. Sharuk

    are you there?

  40. Guus

    Yes. I don't know what more I can tell you.

  41. Sharuk

    In my coding so many error if u send urs i wll put it in mine and i will check it.

  42. Sharuk

    if u have any samples send me

  43. moparisthebest

    did you happen to click the link with the full code example from 20 minutes ago?

  44. Sharuk

    yeah i seen bt i cant understand

  45. moparisthebest

    anything in particular or

  46. Sharuk

    i want server communication coding bruh

  47. moparisthebest

    and that's what you got

  48. Guus

    Sharuk I'd be happy to help, but you're not giving me much to go on.

  49. Guus

    I gave you a coding example that should work for the Smack library - but I'm not even sure if that's what you're using.

  50. Sharuk

    is it?? this is the full coding for connecting the server with client prgm

  51. Guus

    it'll connect. Doesn't do anything, but you'll have an active connection.

  52. Sharuk

    i took the coding from this link :--->>https://www.blikoontech.com/tutorials/android-smack-xmpp-introductionbuilding-a-simple-client

  53. Sharuk

    but it is not working

  54. Guus

    I don't have the time to read through the tutorial and figure out what you might have done wrong.

  55. Guus

    Well, I do have the time - but I don't want to.

  56. Guus

    Seems that it also includes video - have you looked at that?

  57. Guus

    Maybe reach out to the author - he left his contact information on that page.

  58. Guus

    You could also post questions in the online community for Smack, over at www.igniterealtime.org

  59. Sharuk

    it is paid one so i cant watch the video

  60. Guus

    I do advice you to be more specific in your questions though. No-one can help you if you ask very generic questions.

  61. Sharuk

    ok sry for asking these silly questions

  62. Sharuk

    bcoz i dono what to do with these

  63. lovetox

    is Extended Stanza Addressing well supported?

  64. lovetox

    by servers

  65. Zash

    Not that I'm aware

  66. Guus

    Openfire does

  67. Zash

    TIL in that case

  68. Zash

    I wrote https://modules.prosody.im/mod_addressing.html for Prosody loooooooooooooong ago but I was never aware of anyone using it for anything ever