#include "send_message.h"
-#include <cstddef>
-
#include <strings.h>
using namespace STG;
-SEND_MESSAGE::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+SEND_MESSAGE::PARSER::PARSER(CALLBACK f, void * d)
+ : callback(f),
+ data(d),
depth(0)
{
}
else
callback(false, "Invalid response.", data);
}
-//-----------------------------------------------------------------------------
-void SEND_MESSAGE::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}