diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 14:09:12 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-07-27 14:09:12 +1000 |
commit | 951fe787c437d43982f5eda77e1f19bf83998bfd (patch) | |
tree | d2e0c9a57451be75a968fedb6b7c407911ffbef4 /source/game/StarUniverseConnection.hpp | |
parent | 9e7a2e9bb9976a0f23fad5c0c91b151ffa2db24c (diff) |
Networking changes (needs P2P testing, requires clients to update unfortunately)
Diffstat (limited to 'source/game/StarUniverseConnection.hpp')
-rw-r--r-- | source/game/StarUniverseConnection.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/game/StarUniverseConnection.hpp b/source/game/StarUniverseConnection.hpp index 666e2da..ed08104 100644 --- a/source/game/StarUniverseConnection.hpp +++ b/source/game/StarUniverseConnection.hpp @@ -48,7 +48,8 @@ public: // false if the timeout was reached with no packets receivable. bool receiveAny(unsigned timeout); - void setLegacy(bool legacy); + // Returns a reference to the packet socket. + PacketSocket& packetSocket(); // Packet stats for the most recent one second window of activity incoming // and outgoing. Will only return valid stats if the underlying PacketSocket |