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
Gymnasiast
ca2f37ae7f
Remove opt::optional polyfill
...
std::optional is supported by Xcode 10. The non-polyfill variant was already used in our code, so this is not likely to break anything that wasn't broken before.
2020-02-01 22:25:03 +01: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
Ted John
dd20ebad49
Make more methods const
2019-05-12 00:57:56 +01:00
Ted John
f0d1e9c320
Apply some of the code review comments
2019-05-12 00:51:33 +01:00
Ted John
3334d40da4
Explicitly use std::launch::async
2019-05-12 00:51:33 +01:00
Gymnasiast
6e6fe3c3c1
Replace optional.value() with *optional (fix Xcode compilation)
...
Xcode cannot handle the optional.value() notation, but *optional
should mean the same.
Also see https://en.cppreference.com/w/cpp/utility/optional/operator *
2019-05-12 00:51:33 +01:00
Gymnasiast
9b1321067b
Use opt:: namespace
2019-05-12 00:51:33 +01:00
Ted John
47f48721e8
Fix clang build
2019-05-12 00:51:33 +01: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
59ddd7e1ea
Get and broadcast to all broadcast address
2019-05-12 00:51:33 +01:00
Ted John
51117432f0
Improve status messages and prevent duplicates
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
4f0a733496
Sort by LAN servers
2019-05-12 00:51:33 +01:00
Ted John
3a400a2471
Refactor server list
2019-05-12 00:51:33 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
LRFLEW
c41f862920
Fix some memory leaks
2018-10-04 09:42:22 +02:00
Ted John
900465a392
Don't attempt to load server list if file doesn't exist
2018-09-18 12:50:34 +01: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
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
Ted John
c7128ec988
Refactor ServerList more
2018-02-07 13:01:36 +00:00
Ted John
5d51676523
Refactor memory handling in ServerList
2018-02-07 12:51:52 +00:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Ted John
02c58a6c5a
Remove custom base Exception class
2018-01-05 18:11:47 +00:00
Michał Janiszewski
00fd18809c
Move extern "C" {} blocks to headers ( #6282 )
2017-09-18 17:05:28 +02:00
Michał Janiszewski
79d76759bb
Fix #5516 : Update copyrights for 2017
...
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
3474f2adff
Remove RWops from server_list.c
2017-02-12 10:40:31 +00:00