Hielke Morsink
bff430805f
Rename public network config data members
2022-10-16 21:46:06 +02:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Fruitsalad
5bdcd06dec
Remove headless servers from the server list player count
2022-09-06 23:26:27 +02:00
Hielke Morsink
dcec3fb63f
Remove misplaced 'h' from error message
2022-05-09 14:34:48 +02:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
Ted John
454bfb0a8f
Refactor map size to allow for rectangle maps
2022-02-14 23:15:59 +00:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Ted John
3f5698b1e0
Fix REPL write line on Linux
2021-02-16 20:24:51 +00:00
Ted John
05cb106ee7
Improve advertise messages
2021-02-16 20:24:50 +00:00
Tulio Leao
b7f70ab20b
Close #13628 : Refactor MASTER_SERVER_STATUS to strong enum
2020-12-23 20:07:53 -03:00
ζeh Matt
645289f4ec
Rename GameActionResult and use GameActions namespace instead ( #13184 )
2020-10-14 22:04:39 -03:00
Julia Pinheiro
c36ec5c5ce
Close #12425 : Refactor SOCKET_STATUS to use strong enum ( #13064 )
2020-10-01 22:10:51 -03:00
Simon Jarrett
de9a16404b
Refactor NetworkServerAdvertiser to use new JSON library
...
- the body.dump() calls throughout use the default indent parameter of -1 so will produce JSON with no whitespace
- OnRegistrationReponse must be passed a JSON node of type object
2020-09-16 20:18:53 +01:00
Julia Pinheiro
dafde532af
Close #12426 : Refactor NETWORK_READPACKET to use strong enum ( #12807 )
...
Replacing enum NETWORK_READPACKET with enum class NetworkReadPacket.
2020-08-31 09:13:15 -03:00
Ted John
8f77125cdb
Fix #11298 : Unable to advertise server (500): Retry with ipv4 only ( #11824 )
...
Add new config option to allow any address to be advertised. This then
doesn't rely on the master server retrieving the server IP address via
the HTTP request which can often be IPv6 by default.
2020-05-30 18:21:22 +02:00
Michał Janiszewski
2323cc1596
Use named casts instead of old-style casts
...
Change prepared with clang-tidy and google-readability-casting check
2020-04-22 17:09:29 +02:00
Ted John
be9cb19df5
Replace cURL with WinHttp implementation on Windows
...
This reduces the number of third party dependencies for Windows builds. WinHttp is quite a nice straight forward API so doesn't involve too much extra code.
2020-02-08 17:47:03 +00:00
Michał Janiszewski
8637eb6c57
Rename some bits to allow unity builds of libopenrct2 ( #9944 )
...
* Rename some bits to allow unity builds of libopenrct2
Some names are clashing when doing a unity build, renaming them solves
the problem.
2019-08-29 23:03:56 +02:00
Sijmen Schoon
f26a1aee57
Fix compile error with DISABLE_HTTP ( #9309 )
...
There are two variables, MASTER_SERVER_REGISTER_TIME and
MASTER_SERVER_HEARTBEAT_TIME, which are unused when DISABLE_HTTP is set.
This commit fixes that.
2019-05-26 16:06:56 +02:00
Michael Steenbeek
e5eea9d1fa
Merge pull request #9235 from ZehMatt/fix-util-rand
...
Improve util_rand
2019-05-12 13:50:19 +02:00
Matt
eb3018b6a9
Fix warnings
2019-05-12 11:32:41 +02:00
Matt
5198df5c25
Improve generation of random advertisment key
2019-05-12 11:27:48 +02:00
Ted John
4b0f2bbceb
Fix disable network / disable http builds
2019-05-12 00:51:33 +01:00
Ted John
20f52a8cbe
Refactor TcpSocket and UdpSocket
2019-05-12 00:51:33 +01:00
Ted John
6a4791e39e
Only reply to broadcasts with correct message
2019-05-12 00:51:33 +01:00
Ted John
04c04d197e
Refactor broadcasting code and logging
2019-05-12 00:51:33 +01:00
Ted John
4437113805
Fix server list LAN address and port
2019-05-12 00:51:33 +01:00
Ted John
123a8eacad
Get the server list showing LAN servers
2019-05-12 00:51:33 +01:00
Ted John
694cb7eb3f
Implement UDP socket and broadcasting
2019-05-12 00:50:13 +01:00
Filip Gawin
6833da77e3
Simplify boolean expresions
2019-05-10 22:00:38 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
a7f8c8aa36
Refactor utf8* use over std::string
2019-02-24 00:08:05 +01:00
Michał Janiszewski
54403aca06
Fix the no-HTTP builds
2018-12-28 22:27:33 +01:00
Matt
8e2e60b117
Fix #8464 : Crash on game shutdown.
2018-12-17 23:51:43 +01:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Michał Janiszewski
0d2751a54e
Hide the network class declaration to Network.cpp ( #8276 )
...
The Network class is not used by anyone other than free functions in
Network.cpp, nor should it be used by anyone with the current design.
This change leaves only the publicly-exposed functions left in the
header, drastically reducing amount of required headers in network.h,
one of the heaviest headers we had so far.
2018-11-19 23:10:54 +01:00
ζeh Matt
228861c95f
Release memory from json_dumps and decrement references ( #7836 )
2018-08-12 11:46:30 +02:00
clang-format
d787872cbe
Indent preprocessor directives
2018-07-23 16:00:23 +02:00
Hielke Morsink
fdc6e52da1
Correct formatting in files from network to paint
2018-07-23 16:00:15 +02:00
clang-format
e32189fd98
clang-format network
2018-07-23 16:00:05 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Michał Janiszewski
41b2168824
Fix namespace unused with HTTP disabled
2018-06-19 22:41:33 +02:00
Ted John
182bc1afe6
Fix #7696 : Servers do not get registered on master server list
...
Correct the HTTP method used for the heartbeat request.
2018-06-16 22:37:23 +01:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Aaron van Geffen
f1d4e5b596
Rename Http namespace, add default initialisers.
2018-06-11 11:19:04 +02:00
Tobias Kohlbau
62c25d88fb
HTTP: refactor http into modern C++
...
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de >
2018-06-11 10:24:19 +02:00
Michał Janiszewski
991a8472bf
If forcing IPv4, retry immediately rather than wait 2 minutes
2018-02-12 20:39:47 +01:00
Michał Janiszewski
2e19e6cf0e
Use CURL_IPRESOLVE_V4 option only as fallback for advertising
2018-02-12 20:39:47 +01:00
ZehMatt
84f2917f59
Use const and constexpr whenever possible.
2018-01-11 22:29:08 +01:00