-
sfdcjkl
Kann man mit XMPP in C++ ein Messanger schreiben ?
-
sfdcjkl
Can I write an messanger in C++ with the XMPP protocole ?
-
Zash
Sure. E.g. Swift ( https://swift.im/ ) is an XMPP client written in C++
-
sfdcjkl
with server ?
-
Zash
Servers can also be written in C++
-
sfdcjkl
But only C++ no swift
-
Guus
XMPP is a protocol definition, that can be implemented in most programming languages.
-
sfdcjkl
and can i run the server on raspberry pi
-
Guus
See https://xmpp.org/software/ for a listing of some of the available implementations.
-
Zash
Please be aware that you're in a discussion channel for the protocol itself.
-
Guus
People do have servers running on a raspberry, yes. I personally don't have experience with that.
-
sfdcjkl
Okay, sorry, I thought they could help me
-
Guus
No worries, we can.
-
sfdcjkl
Yes I just wanted to write a messenger in C ++ and wanted to inform me about the protocol XMPP and see if it runs on a Paspberry pi ...
-
Guus
I'm a Java dev myself, so I have limited C++ experience.
-
Guus
I think https://camaya.net/gloox/ is a commonly used library for C++ though
-
Guus
Apart from Swiften (note that the name does not relate to Swift from Apple, even if it sounds similar)
-
sfdcjkl
Yes and I am a 13 year old student who knows python and now wants to learn C ++ ...
-
Guus
Cool. go for it π
-
sfdcjkl
V✎ -
sfdcjkl
Oh, I thought of swift an apple, sorry
-
Daniel
If you are just starting out I'd recommend focusing on either the server or the client for now
-
Daniel
And then either use a preexisting server or client to test what you are developing with
-
Guus
Swiften, the XMPP project, existed long before Swift from Apple came along π
-
sfdcjkl
Okay, thank you very much, I have not had this idea for so long and I just did Python and played a bit with the Apache2 server. Now I wanted to learn C ++ but realized that it's fast like python ✏
-
sfdcjkl
Okay, thank you very much, I have not had this idea for so long and I just did Python and played a bit with the Apache2 server. Now I wanted to learn C ++ but realized that it's fast like python
-
Guus
Happy to help. Good luck!
-
sfdcjkl
Oh, and I am there with my Ubuntu (19.04) limited
-
sfdcjkl
I'm sorry but I have to go offline now because my mother says I should sleep now (time difference)
-
Guus
Sleep tight
-
Guus
I'm thinking more 'age difference' than 'time difference' π
-
sfdcjkl
Well I live in Europe
-
Guus
most of us here do.
-
Guus
I'm from the Netherlands myself
-
sfdcjkl
Okay, but I really have to go offline but thank you and good luck;)
-
Guus
"XMPP, making mothers angry around the globe"
-
DebXWoody
Oh,... I'm too late. If he will come back, you can show him https://codeberg.org/xmpp-messenger
-
DebXWoody
There are two small gloox apps which can help him. Next weekend I will be able to push XEP-0030 info app.
-
marc_
Is there a good/easy way to generate groupchat invitation URLs for a web client?
-
marc_
Let's say I would like somebody to join our groupchat via web client because the person doesn't have to install an app
-
marc_
Anybody who thought about this use case?
-
Zash
If it's a public room with a publicly accessible web chat (like this very room!) then you could check if there's an URL for it in disco and send that.
-
Ge0rG
marc_: https://search.jabber.network/search?f=y&q=xsf
-
Zash
jonasβ, it forgot about us again! :S
-
marc_
No, I want invite somebody with one or two clicks
-
Zash
Oh
-
marc_
No public group chat
-
Zash
Ge0rG, you somehow got all the checkboxes unchecked?
-
Zash
marc_, private groupchat but anonymous web chat access? not aware of anything atm
-
Zash
XEP-0379 but for MUC?
-
marc_
Would be nice to have that, might lower the on boarding bar
-
marc_
I thought about that the home server could advertise a web client URL or something like that
-
Zash
marc_, get Ge0rG, yourself and JC in a room together?
-
Zash
https://xmpp.org/extensions/xep-0379.xml + https://xmpp.org/extensions/xep-0401.xml + web client = ???
-
Zash
and a touch of MUC
-
Ge0rG
Zash: did you just say muc password?
-
marc_
Not sure, maybe a service advertisement would be enough
-
Zash
One-time MUC passwords?
-
marc_
Just to advertise web client URLs and that we don't have to rely on a single web service like conversejs.org or something similar
-
Zash
Something in the style of https://xmpp.org/extensions/xep-0156.html ?
-
marc_
At the moment I have to generate such URLs manually
-
marc_
Maybe, not sure if DNS but some way that my client (e.g. Conv) can generate a web client URL for other users
-
Zash
Hm, consider that a MUC service might be detached from the XMPP service you're on.
-
Ge0rG
If it's a private room, how do you want to authenticate the web user?
-
marc_
Not sure, at the moment via the cryptic name :D
-
marc_
At the moment I don't need security. It's just for "let's join the room and discuss when we meet without fucking WhatsApp"
-
Zash
Web client startup code that gets room(s) from the ?query or #hash part of the URL would do the trick?
-
Zash
And some trickery so you know this works
-
Zash
Like the trickery done here to get https://search.jabber.network/search?q=xsf to get that "join using browser" link
-
Ge0rG
marc_: the web chat url is in the disco#info response, all you need is to expose that in a client
-
lovetox
to make it private the room could have a password, and the password could be in the uri
-
Zash
Making it non-public and having a long random name works like a password
-
marc_
Nice, sounds like what I need
-
marc_
It this disco thing standardized?✎ -
marc_
Is this disco thing standardized? ✏
-
Zash
Heh, well, https://github.com/xsf/xeps/pull/828