Changed InternalTags names to be lower case

Removed parameter less constructor from TcpClient
Added UdpClient files
This commit is contained in:
xX-TheDoctor-Xx
2016-08-21 15:24:28 +01:00
parent 996b88c0f6
commit 74d9d5db87
16 changed files with 40 additions and 26 deletions

View File

@ -239,10 +239,10 @@ enum ConnectionCode
enum InternalTags
{
CONNECT = 254,
DISCONNECT = 255,
ConnectTag = 254,
DisconnectTag = 255,
};
#define IS_HANDSHAKE(name) name.subject == 1 && (name.tag == DISCONNECT || name.tag == CONNECT || name.tag == ConnectionCode::Accept || name.tag == ConnectionCode::Close || name.tag == ConnectionCode::Reject)
#define IS_HANDSHAKE(name) name.subject == 1 && (name.tag == DisconnectTag || name.tag == ConnectTag || name.tag == Accept || name.tag == Close || name.tag == Reject)
#endif // DEFS_HPP

View File

@ -14,7 +14,6 @@
struct TcpClient
{
TcpClient();
TcpClient(const SOCKET &socket);
TcpClient(const std::string &ip);
TcpClient(const std::string &ip, uint16 port = default_client_port);

View File

@ -5,9 +5,15 @@
#pragma once
#endif
#include "Defs.hpp"
#include "NetworkMessage.hpp"
#include <string>
#include <functional>
struct UdpClient
{
};
#endif