-
Guus
What clients support MAM in MUC, including features that lets you search through archives based on time, author, keywords?
-
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?)
-
Ge0rG
goffi: it has been just submitted to the XSF
-
Ge0rG
goffi: https://xmpp.org/extensions/inbox/fulltext.html
-
goffi
OK good news, I'll add it soon then.
-
goffi
Guus: you have documentation at https://salut-a-toi.org/__b/doc/sat/jp/message.html#mam
-
Guus
tx!
-
pep.
goffi, "Retrieve messages from last 5 hours on SàT official chat room:", the code below says "2h ago"
-
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.
-
goffi
pep.: ^
-
pep.
:)
-
rajkumar
how to communicate the XMPP client (using Smack Libraries) to localhost server✎ -
rajkumar
how to communicate the XMPP client (using Smack Libraries) to localhost server Please suggest me guys.. ✏
-
Guus
rajkumar If I recall correctly, you can specify the connect host when you set up the connection in Smack
-
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(); }
-
Guus
something like that?
-
Guus
this does an anonymous login, which must be enabled on the server.
-
Guus
also, it disables security, which obviously is not... secure.
-
rajkumar
Thanks for your response i setup the connection with local host IP address but connection is not happend my code is..
-
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(); }
-
Guus
that suggests that your xmpp domain name is 'localhost'
-
Guus
which probably is not true.
-
Guus
also, you may need to set .setXmppDomain("example.org") explicitly
-
Guus
(use the domain name of your server, obviously)
-
rajkumar
my ejabbered local host name is admin@locahost
-
rajkumar
could u Please suggest some reference link for client and server communication
-
Guus
reconfigure your server to use anything but 'localhost' as the domain name.
-
Guus
Using 'localhost' is very confusing when networking is in play.
-
Guus
even simply using the hostname of your computer is an improvement, as at least that is resolvable.
-
Guus
also, you should be aware of the distinction between the concept of hostname and xmpp domain name.
-
Guus
they can have the same value, but that does not need to be the case.
-
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.
-
rajkumar
Tks..
-
Guus
np
-
Sharuk
hello i am also facing the same problem. Can you send me the full coding of Client server communication Sir
-
Guus
I just did.
-
Guus
https://logs.xmpp.org/jdev/2020-01-24#2020-01-24-5180d1123b5db103
-
Sharuk
i dono how to connect the client with server
-
Sharuk
are you there?
-
Guus
Yes. I don't know what more I can tell you.
-
Sharuk
In my coding so many error if u send urs i wll put it in mine and i will check it.
-
Sharuk
if u have any samples send me
-
moparisthebest
did you happen to click the link with the full code example from 20 minutes ago?
-
Sharuk
yeah i seen bt i cant understand
-
moparisthebest
anything in particular or
-
Sharuk
i want server communication coding bruh
-
moparisthebest
and that's what you got
-
Guus
Sharuk I'd be happy to help, but you're not giving me much to go on.
-
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.
-
Sharuk
is it?? this is the full coding for connecting the server with client prgm
-
Guus
it'll connect. Doesn't do anything, but you'll have an active connection.
-
Sharuk
i took the coding from this link :--->>https://www.blikoontech.com/tutorials/android-smack-xmpp-introductionbuilding-a-simple-client
-
Sharuk
but it is not working
-
Guus
I don't have the time to read through the tutorial and figure out what you might have done wrong.
-
Guus
Well, I do have the time - but I don't want to.
-
Guus
Seems that it also includes video - have you looked at that?
-
Guus
Maybe reach out to the author - he left his contact information on that page.
-
Guus
You could also post questions in the online community for Smack, over at www.igniterealtime.org
-
Sharuk
it is paid one so i cant watch the video
-
Guus
I do advice you to be more specific in your questions though. No-one can help you if you ask very generic questions.
-
Sharuk
ok sry for asking these silly questions
-
Sharuk
bcoz i dono what to do with these
-
lovetox
is Extended Stanza Addressing well supported?
-
lovetox
by servers
-
Zash
Not that I'm aware
-
Guus
Openfire does
-
Zash
TIL in that case
-
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