1
0
forked from 0ad/0ad
0ad/source/lobby
wraitii e94faf7827 Don't hardcode the "0ad" resource into lobby XMPP & hosting
XMPP JID has a concept of 'resources', which can be used to
differentiate multiple clients of the same account.

We currently hardcode this 'resource' to '0ad' in two places:
- The 0 A.D. client always uses '0ad'
- The network code expects a host resource to be '0ad' when connecting.

As noted in 0fd8aa2a77#31215, it is less effort to store the JI
D directly. This patch does that. It also makes 0 A.D. use a different
resource each time.
Note that resources ought not contain particular information, as the
XMPP server is free to
 clobber it. I keep '0ad-' here for debug purposes.

This allows:
- multiple 0 A.D. instances to log on the lobby at the same time (not
massively useful, but good for debugging sometimes)
- hosting a game with a custom resource, which will potentially make it
easier to have dedi
cated servers on one account.

Note that hosting multiple games on one account is currently not
supported and will have weird behaviour on the lobbybots side. They
should be upgraded independently of this.

Refs #3556

Differential Revision: https://code.wildfiregames.com/D3500
This was SVN commit r25407.
2021-05-09 12:51:32 +00:00
..
glooxwrapper Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
scripting Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
Globals.cpp Fix building with --without-lobby. Fixes #2249. 2013-11-08 15:28:44 +00:00
IXmppClient.h Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
StanzaExtensions.cpp Get the public IP from the lobby if not using STUN. 2021-02-08 15:47:34 +00:00
StanzaExtensions.h Hide ip and port from users until they want to join, add optional password 2021-01-20 18:31:39 +00:00
XmppClient.cpp Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
XmppClient.h Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00