mirror of
https://github.com/edubart/otclient.git
synced 2025-12-29 02:47:12 +01:00
rewrite and reoganize tools functions
* create stdext namespace which contains additional C++ algorithms * organize stdext in string, math, cast and exception utilities
This commit is contained in:
@@ -48,7 +48,7 @@ public:
|
||||
static void poll();
|
||||
static void terminate();
|
||||
|
||||
void connect(const std::string& host, uint16 port, const SimpleCallback& connectCallback);
|
||||
void connect(const std::string& host, uint16 port, const std::function<void()>& connectCallback);
|
||||
void close();
|
||||
|
||||
void write(uint8* buffer, uint16 size);
|
||||
@@ -68,7 +68,7 @@ protected:
|
||||
void onTimeout(const boost::system::error_code& error);
|
||||
void handleError(const boost::system::error_code& error);
|
||||
|
||||
SimpleCallback m_connectCallback;
|
||||
std::function<void()> m_connectCallback;
|
||||
ErrorCallback m_errorCallback;
|
||||
RecvCallback m_recvCallback;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user