1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Commit Graph

7 Commits

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