1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 20:43:04 +01:00
Commit Graph

19 Commits

Author SHA1 Message Date
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