1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
Julian
142c078ad1 Fix some include directives for POSIX 2024-02-24 23:56:02 +01:00
James103
1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Matthias Moninger
379287ed0f Remove legacy stuff in common.h (#20523)
* Remove old interop macro

* Remove legacy string macro things

* Unbreak the posix/linux/unix builds

* Add String::IEquals and use it for case insensitive compare

* Add missing include for posix

* Replace _strnicmp with String::StartsWith

* Add LoByte and HiByte into Util.h, swap macros

* Fix android build

* Hopefully last of the string things

* Replace STUB directly with the warning
2023-07-02 12:59:20 +03:00
Hielke Morsink
6b7dc8fcdb Rename snake_case functions in openrct2/src folder
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01:00
James103
73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01: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
Silent
dc7e31f7af Remove any traces of WinNT5.1 as per #16911 2022-06-20 21:26:40 +02:00
germanaizek
958bfbc08a Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen 2022-05-07 16:05:39 +02:00
Silent
5e725913f8 Close #16566: Favour WinNT preprocessor version checks over MinGW (#16677) 2022-03-11 07:59:09 -03:00
skdltmxn
29083f4cb2 Improve network module in more C++ way 2022-02-09 21:57:25 +01:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Hielke Morsink
c887a049d2 Fix various Cppcheck warnings (#15081) 2021-07-24 23:41:50 +02:00
ζeh Matt
08ebc1ab41 Fix #14587: Send queued packets before disconnecting the client (#14596)
* Fix #14587: Send queued packets before disconnecting the client

* Log better information during network authentication
2021-05-09 07:56:20 +01:00
Ted John
e28c23f10f Fix regression in CreateSocket (#14131) 2021-02-21 03:58:34 +00:00
Ted John
c30e1f083b Improve network console messages 2021-02-16 20:24:50 +00:00
Mathias Gibbens
b1e5a11bf3 Several more spelling fixes (#13752)
Signed-off-by: Mathias Gibbens <mathias@calenhad.com>

Co-authored-by: Mathias Gibbens <mathias@calenhad.com>
2021-01-10 18:23:35 +00:00
Julia Pinheiro
c36ec5c5ce Close #12425: Refactor SOCKET_STATUS to use strong enum (#13064) 2020-10-01 22:10:51 -03:00
Tulio Leao
cf5f3da0df Cleanup c-style casts from Socket.cpp 2020-09-10 21:36:21 +02:00
Ted John
33ba51b763 Fix crashes and improve socket lifecycle 2020-09-03 22:38:42 +01:00
Ted John
fd6fddb61a Improve WSA handling 2020-09-03 22:38:42 +01:00
Ted John
182bcaf21a Implement setNoDelay 2020-09-03 22:38:42 +01:00
Ted John
dce547af99 Start implementing TCP API 2020-09-03 22:38:35 +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
Matt
37f6a11a1f Move Network declaration into header and rename to NetworkBase 2020-07-30 20:29:15 +02:00
Aaron van Geffen
7b5087f057 Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Michael Steenbeek
9ef8d6da42 Convert most remaining C-style casts to C++-style ones (#11867) 2020-06-07 23:18:11 +02:00
Ted John
ecce4da6e8 Add ipAddress and publicHashKey properties to player API 2020-04-27 20:50:56 +01: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
Michał Janiszewski
837879018f Make socket status atomic (#9636)
* Make socket status atomic

`TcpSocket::ConnectAsync` will call `Connect` and modify `_status` from
a different thread and must ensure it doesn't introduce a data race.

* Update src/openrct2/network/Socket.cpp

Co-Authored-By: ζeh Matt <m.moninger.h@gmail.com>
2019-07-24 15:05:26 +02:00
Ted John
dd20ebad49 Make more methods const 2019-05-12 00:57:56 +01:00
Ted John
5e94f6385d Initialise hostname 2019-05-12 00:51:33 +01:00
Ted John
73b8310e8e Refactor creation of UDP socket 2019-05-12 00:51:33 +01:00
Ted John
f0d1e9c320 Apply some of the code review comments 2019-05-12 00:51:33 +01:00
Ted John
52afcb795f Fix windows build 2019-05-12 00:51:33 +01:00
Ted John
20f52a8cbe Refactor TcpSocket and UdpSocket 2019-05-12 00:51:33 +01:00