Commit Graph

76 Commits

Author SHA1 Message Date
Benau
d9cebc3991 Try unreliable state in network 2018-07-27 21:47:07 +08:00
Benau
e1dfe2e7e0 Show ping of remote players in lobby 2018-07-04 00:54:40 +08:00
Benau
843ecfcbc0 Add --connection-debug for verbose packet logging 2018-06-08 12:12:59 +08:00
hiker
cd80101bdf Removed execute permission (for unknown reasons VS makes source files
executable when it saves them).
2018-06-08 10:59:13 +10:00
hiker
b0da0f640a Merge remote-tracking branch 'origin/master' into network-items,
fixed conflicts.
2018-06-08 10:55:14 +10:00
Benau
d89c65b0c9 Remove token in network string 2018-06-04 13:25:10 +08:00
Benau
b43a5e4d18 Add AES encryption and validation for wan player 2018-06-02 12:28:29 +08:00
Benau
056e596d5a Fix debug build and clean up 2018-05-22 02:06:16 +08:00
Benau
1a975f9ef4 Offer a way to know accurate ping to server within 3 seconds 2018-05-22 01:31:08 +08:00
hiker
356680b182 Removed debug prints. 2018-05-08 18:41:37 +10:00
Benau
70def13ca2 Use a more sophiscated server-client token validation 2018-03-27 01:02:31 +08:00
Benau
c3ea7f1088 Ignore the first 15 seconds for ping result 2018-03-24 08:20:27 +08:00
Benau
52dc38d03b Use human readable ip for ban list
And update MapUserConfigParam to use initializer_list default value
2018-03-23 17:22:03 +08:00
Benau
82be7572a1 Use the new method to connect / start game 2018-03-16 17:11:23 +08:00
Benau
25da48634d Add kick ban in network console configurable in config.xml 2018-03-12 13:59:38 +08:00
Benau
3bbec8aa27 Initial work on lobby redesign 2018-03-12 00:18:53 +08:00
Benau
4dea283965 Only run enet command in listening thread
And use sleep instead of timeout for new code
2018-03-10 14:56:32 +08:00
Benau
98e3d82921 Add kicking players and properly recieve disconnect events 2018-03-10 12:34:33 +08:00
Benau
22ca1cb751 Avoid sending to wrong peer in case of disconnection 2018-03-10 01:07:23 +08:00
Benau
5756fd5f48 Use a mutex to make only 1 enet_peer_send happening
In reality we need mutex to protect enet_host_service, but it leads
to seriously increased locked time
2018-03-09 23:00:47 +08:00
Benau
dd2e32a953 Implement a thread-safe list of STKPeer
Block re-connect from the same ip and port and clean up add or
remove of peers
2018-03-09 18:33:19 +08:00
Benau
2b56a97b08 Clean up Server, ServersManager and quick play
For now we choose the server with the least player for quick play
2018-03-05 01:54:44 +08:00
hiker
efeea8eeb2 More debug output. 2017-02-15 09:50:00 +11:00
hiker
655987b992 Removed NetworkPlayerProfile field from STKPeer (since if splitscreen will
be supported there will be no 1:1 relationship between peer and players
anymore). All voting related protocols were extended to include the
voting player's player id (sp in future split screen player can vote
individually - though atm they would all vote for the same thing).
2016-03-11 16:42:35 +11:00
hiker
6d1e5dc8ae Fixed crashed caused by sending messages that have been read previously
(which were sent with incorrect length).
2016-03-09 21:21:50 +11:00
hiker
58505eeb88 Started to set token in the 'lower level' functions, removing the need
to set the token in each protocol. Started to remove some of the
unnecessary send* functions.
2016-02-28 15:54:43 +11:00
hiker
9a16595261 Renamed NewNetworkString to NetworkString. 2016-02-28 14:58:15 +11:00
hiker
be815e4234 Fixed various bugs caused by switching to new NetworkString class. 2016-02-26 16:38:59 +11:00
hiker
98ba11d9ba Started to introduce new network string. It compiles, but certainly
does not work yet.
2016-02-23 16:29:57 +11:00
hiker
7e6711e163 Renamged NetworkWorld to RaceEventManager (since this class is
not a 'world' in the sense our game modes are).
2016-02-11 09:03:51 +11:00
hiker
cebf395939 Only allow the first connected client to control the server. 2016-02-10 08:28:15 +11:00
hiker
2f126ab226 Moved NetworkPlayerProfile into its own file, added getter and
setters for it.
2015-11-26 07:41:37 +11:00
hiker
29e0b50e14 Removed friend declaration; fixed crash caused by deleting the
ENetPeer when deleting an (STK) Event.
2015-11-17 08:11:07 +11:00
hiker
0ed22d0d6e Fixed debug message. 2015-11-16 18:46:04 +11:00
hiker
ef310a5666 Renamed types.hpp to transport_address.hpp. 2015-10-29 18:39:01 +11:00
hiker
6297d8c65d Removed NetworkManager and ClientNetworkManager. 2015-10-27 08:23:59 +11:00
hiker
51d39879b4 Moved NetworkManager::connect and STKPeer::connextTo functions into STKHost. 2015-10-26 18:01:07 +11:00
hiker
350f434c37 Started to refactor network code. 2015-10-24 12:39:17 +11:00
hiker
c59f958c2f Removed unnecessary #include, and disabled copying of STKPeer. 2015-10-22 18:46:01 +11:00
hiker
1f4f2bce86 Coding style changes. 2015-10-22 16:03:11 +11:00
hiker
162bcced37 Make m_ip and m_port in TransportAddress private (adding setters and getters). 2015-10-16 16:59:42 +11:00
hiker
517ba2c2df Cosmetic changes, added some convenience functions. 2015-10-16 00:52:28 +11:00
Deve
375e7ea0ed More fixes for 64-bit mingw 2015-10-13 01:05:41 +02:00
hiker
8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
konstin
7cc83e1475 running whitespaces.py update 1 2014-03-29 11:33:43 +01:00
konstin
663fffdebb Revert "Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces"
This reverts commit 65e2dcf2f0.
2014-03-29 11:32:04 +01:00
konstin
65e2dcf2f0 Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces 2014-03-28 20:08:39 +01:00
KroArtem
c4fd2eda08 fixing some memleaks 2014-02-09 01:36:32 +04:00
KroArtem
2772fafcf0 cppcheck fixes, use logging in kart_selection.cpp 2014-02-04 02:53:50 +04:00
Marianne Gagnon
b726ff79b1 Fix bug found by coverity scan. Hopefully I didn't break anything 2014-02-01 18:36:29 -05:00