Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarUniverseConnection.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-27 14:09:12 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-27 14:09:12 +1000
commit951fe787c437d43982f5eda77e1f19bf83998bfd (patch)
treed2e0c9a57451be75a968fedb6b7c407911ffbef4 /source/game/StarUniverseConnection.hpp
parent9e7a2e9bb9976a0f23fad5c0c91b151ffa2db24c (diff)
Networking changes (needs P2P testing, requires clients to update unfortunately)
Diffstat (limited to 'source/game/StarUniverseConnection.hpp')
-rw-r--r--source/game/StarUniverseConnection.hpp3
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