1
0
forked from 0ad/0ad
0ad/source/network
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
..
scripting Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
tests Make real directory paths on the VFS predictable (retry) 2021-03-23 12:46:59 +00:00
fsm.cpp Strip trailing whitespace from network code. 2015-12-21 13:58:32 +00:00
fsm.h Strip trailing whitespace from network code. 2015-12-21 13:58:32 +00:00
NetClient.cpp Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
NetClient.h Don't hardcode the "0ad" resource into lobby XMPP & hosting 2021-05-09 12:51:32 +00:00
NetClientTurnManager.cpp Remember OOS on a per-client basis. 2021-03-31 15:55:19 +00:00
NetClientTurnManager.h Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095. 2017-01-24 02:04:50 +00:00
NetFileTransfer.cpp Split NetFileTransfer message parsing into one function per case, refs #5212. 2019-09-17 14:18:46 +00:00
NetFileTransfer.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
NetHost.cpp Automatically replace %hs/%ls with %s in CLogger format strings. 2015-01-22 20:36:24 +00:00
NetHost.h Hide ip and port from users until they want to join, add optional password 2021-01-20 18:31:39 +00:00
NetMessage.cpp Pass ScriptInterface as a const ref where possible. 2017-08-24 00:32:42 +00:00
NetMessage.h Fix few typos found with the Debian lintian tool. 2017-10-28 22:34:57 +00:00
NetMessages.h MP: don't enforce game init attributes synchronization in PREGAME. 2021-03-22 10:13:27 +00:00
NetMessageSim.cpp [SM52 2/2] Update to Spidermonkey 52 APIs. 2020-11-18 14:39:04 +00:00
NetServer.cpp Netcode: allow observers to lag behind the live game. 2021-03-29 07:53:06 +00:00
NetServer.h MP: don't enforce game init attributes synchronization in PREGAME. 2021-03-22 10:13:27 +00:00
NetServerTurnManager.cpp Remember OOS on a per-client basis. 2021-03-31 15:55:19 +00:00
NetServerTurnManager.h Remember OOS on a per-client basis. 2021-03-31 15:55:19 +00:00
NetSession.cpp Netcode: Identify controller client via a secret key 2021-02-27 17:44:59 +00:00
NetSession.h Netcode: Identify controller client via a secret key 2021-02-27 17:44:59 +00:00
NetStats.cpp Clean up ThreadUtil, use standard C++11 constructs instead of custom ones. 2019-06-06 19:30:48 +00:00
NetStats.h Further header & precompiled cleanup, fix no-PCH builds. 2020-12-09 14:39:14 +00:00
NMTCreator.h Net Server: Verify password in Authenticate 2021-01-23 18:04:36 +00:00
Serialization.h Strip trailing whitespace from network code. 2015-12-21 13:58:32 +00:00
StringConverters.h Provide JSON-compatible string escaping 2011-11-04 01:18:34 +00:00
StunClient.cpp Split ScriptRequest in its own header. 2021-05-03 16:07:26 +00:00
StunClient.h Get the public IP from the lobby if not using STUN. 2021-02-08 15:47:34 +00:00