From 6a00886804c53883d919f008f6ec47a574d86607 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 24 Jul 2017 19:52:24 +0500 Subject: 2017-07-24 --- include/network/Network.hpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 include/network/Network.hpp (limited to 'include/network/Network.hpp') diff --git a/include/network/Network.hpp b/include/network/Network.hpp deleted file mode 100644 index 1281289..0000000 --- a/include/network/Network.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#pragma once - -#include -#include "Socket.hpp" -#include "Packet.hpp" - -enum ConnectionState { - Handshaking, - Login, - Play, - Status, -}; - -class Network { - Socket *socket; - StreamSocket *stream; - - std::shared_ptr ReceivePacketByPacketId(int packetId, ConnectionState state, StreamInput &stream); -public: - Network(std::string address, unsigned short port); - ~Network(); - - std::shared_ptr ReceivePacket(ConnectionState state = Play); - void SendPacket(Packet &packet); - std::shared_ptr ParsePacketPlay(PacketNamePlayCB id); -}; \ No newline at end of file -- cgit v1.2.3