aboutsummaryrefslogtreecommitdiff
path: root/src/tools/connection_patcher/Helper.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/connection_patcher/Helper.hpp')
-rw-r--r--src/tools/connection_patcher/Helper.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/connection_patcher/Helper.hpp b/src/tools/connection_patcher/Helper.hpp
index 4458617708f..e0c4e8dd2de 100644
--- a/src/tools/connection_patcher/Helper.hpp
+++ b/src/tools/connection_patcher/Helper.hpp
@@ -20,16 +20,27 @@
#define CONNECTION_PATCHER_HELPER_HPP
#include "Constants/BinaryTypes.hpp"
+#include "Patterns/Common.hpp"
+#include <boost/filesystem.hpp>
+#include <boost/asio.hpp>
#include <vector>
+#include <set>
#include <string>
+#include <stdexcept>
+#include <SHA256.h>
+#include <Util.h>
namespace Connection_Patcher
{
namespace Helper
{
+ void CopyDir(boost::filesystem::path const & source, boost::filesystem::path const & destination);
+ void DownloadFile(const std::string& serverName, int port, const std::string& getCommand, std::ostream& out);
Constants::BinaryTypes GetBinaryType(std::vector<unsigned char> const& data);
std::string GetFileChecksum(std::vector<unsigned char> const& data);
+ std::set<size_t> SearchOffset(std::vector<unsigned char> const& binary, std::vector<unsigned char> const& pattern);
+ uint32_t GetBuildNumber(std::vector<unsigned char> const& binary);
}
}