summaryrefslogtreecommitdiffstats
path: root/src/Network.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network.hpp')
-rw-r--r--src/Network.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Network.hpp b/src/Network.hpp
index 29a090f..2640e0f 100644
--- a/src/Network.hpp
+++ b/src/Network.hpp
@@ -14,10 +14,17 @@ class Network {
std::unique_ptr<Socket> socket;
std::unique_ptr<StreamSocket> stream;
- std::shared_ptr<Packet> ReceivePacketByPacketId(int packetId, ConnectionState state, StreamInput &stream);
+ std::shared_ptr<Packet> ReceivePacketByPacketId(int packetId, ConnectionState state, StreamInput &in);
public:
Network(std::string address, unsigned short port);
+ Network(const Network&) = delete;
+
+ Network(Network&&) = default;
+
+ Network& operator=(const Network&) = delete;
+ Network& operator=(Network&&) = default;
+
~Network();
std::shared_ptr<Packet> ReceivePacket(ConnectionState state = Play, bool useCompression = false);