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