Tried to implement some Utility::Bitconverter methods but it didnt worked

InternalTags cant be higher than 255 because they will be converted to byte
added new ToString method in Utility::StringConverter
Server now closes the connection better
This commit is contained in:
xX-TheDoctor-Xx
2016-08-12 10:46:36 +01:00
parent bcf8ea1919
commit e3de0a1489
24 changed files with 35 additions and 32 deletions

View File

@ -54,13 +54,14 @@ struct Utility
static const std::string &ToString(int16 value);
static const std::string &ToString(int32 value);
static const std::string &ToString(int64 value);
static const std::string &ToString(const std::vector<byte> &bytes);
static const std::string &ToString(const std::vector<byte> &bytes, uint16 start_index = 0, uint16 lenght = 0);
};
struct ConfigReader
{
const void ReadConfig(const std::string &file_name);
void ReadConfig(const std::string &file_name);
const std::map<std::string, std::string> &ReadNodes();
const std::string &operator[](uint16 index);